0
nhontran created
-
ABP Framework version: v8.0.2
-
UI Type: Angular
-
Database System: EF Core
-
Tiered (for MVC) or Auth Server Separated (for Angular): yes
Hi, After migrated to OpenIdDict, the response from discovery endpoints are logged into the log file which consuming a lot of disk space, is there a configuration to turn it off?
3 Answer(s)
-
0
hi
<PackageReference Include="Serilog.Expressions" Version="3.4.0" />
add
.Filter.ByExcluding("RequestPath = '/.well-known/openid-configuration'")
Log.Logger = new LoggerConfiguration() .MinimumLevel.Information() .Filter.ByExcluding("RequestPath = '/.well-known/openid-configuration'") .MinimumLevel.Override("Microsoft", LogEventLevel.Information) .MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning) .Enrich.FromLogContext() .WriteTo.Async(c => c.File("Logs/logs.txt")) .WriteTo.Async(c => c.Console()) .CreateLogger();
-
0
Thank @maliming
-
0
: )