测试修改serilog 日志
This commit is contained in:
@@ -80,6 +80,7 @@ builder.Services.AddExceptionHandler<GlobalExceptionHandler>();
|
||||
|
||||
//健康检查
|
||||
builder.Services.AddHealthChecks();
|
||||
builder.Services.AddSerilog();
|
||||
//本地化
|
||||
builder.Services.AddJsonLocalization(options => options.ResourcesPath = "Resources");
|
||||
|
||||
@@ -197,7 +198,7 @@ app.UseExceptionHandler(o => { });
|
||||
app.UseIRacisHostStaticFileStore(env);
|
||||
|
||||
//本地化
|
||||
await app.UseLocalization(app.Services);
|
||||
await app.UseLocalization(app.Services);
|
||||
|
||||
app.UseForwardedHeaders();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user