We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 288ba13 commit 9dedb9fCopy full SHA for 9dedb9f
src/OneGround.ZGW.Common/Logging/SerilogConfig.cs
@@ -1,4 +1,4 @@
1
-using System.Globalization;
+using System.Globalization;
2
using System.Reflection;
3
using System.Runtime.InteropServices;
4
using Microsoft.Extensions.Hosting;
@@ -49,9 +49,10 @@ public static IHostApplicationBuilder UseAndConfigureSerilog(this IHostApplicati
49
a.File(
50
formatter: new JsonFormatter(renderMessage: true, formatProvider: CultureInfo.CurrentCulture),
51
path: logPath,
52
- fileSizeLimitBytes: null,
+ fileSizeLimitBytes: 100 * 1024 * 1024,
53
+ rollOnFileSizeLimit: true,
54
rollingInterval: RollingInterval.Day,
- retainedFileCountLimit: 2,
55
+ retainedFileCountLimit: 3,
56
shared: true
57
)
58
);
0 commit comments