mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +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;
|
||||
#endif
|
||||
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)
|
||||
.MinimumLevel.ControlledBy(levelSwitch)
|
||||
.CreateLogger();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue