测试修改serilog 日志

This commit is contained in:
2024-10-21 15:39:57 +08:00
parent 8bd82ed409
commit f7e47293dd
5 changed files with 62 additions and 67 deletions
+2 -1
View File
@@ -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();