mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
Merge pull request #398 from daemitus/rollingLogSiink
This commit is contained in:
commit
2665679b41
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ namespace Dalamud
|
||||||
levelSwitch.MinimumLevel = configuration.LogLevel;
|
levelSwitch.MinimumLevel = configuration.LogLevel;
|
||||||
#endif
|
#endif
|
||||||
Log.Logger = new LoggerConfiguration()
|
Log.Logger = new LoggerConfiguration()
|
||||||
.WriteTo.Async(a => a.File(logPath))
|
.WriteTo.Async(a => a.File(logPath, fileSizeLimitBytes: 5 * 1024 * 1024, rollOnFileSizeLimit: true))
|
||||||
.WriteTo.Sink(SerilogEventSink.Instance)
|
.WriteTo.Sink(SerilogEventSink.Instance)
|
||||||
.MinimumLevel.ControlledBy(levelSwitch)
|
.MinimumLevel.ControlledBy(levelSwitch)
|
||||||
.CreateLogger();
|
.CreateLogger();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue