mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
logging: limit main log file size to 100mb
This commit is contained in:
parent
19464ec080
commit
25cf7fde10
2 changed files with 5 additions and 3 deletions
|
|
@ -198,9 +198,10 @@ namespace Dalamud.Injector
|
|||
|
||||
CullLogFile(logPath, 1 * 1024 * 1024);
|
||||
|
||||
const long maxLogSize = 100 * 1024 * 1024; // 100MB
|
||||
Log.Logger = new LoggerConfiguration()
|
||||
.WriteTo.Console(standardErrorFromLevel: LogEventLevel.Debug)
|
||||
.WriteTo.File(logPath, fileSizeLimitBytes: null)
|
||||
.WriteTo.File(logPath, fileSizeLimitBytes: maxLogSize)
|
||||
.MinimumLevel.ControlledBy(levelSwitch)
|
||||
.CreateLogger();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue