| | |
| | | outputTemplate: template, |
| | | restrictedToMinimumLevel: LogEventLevel.Information)) |
| | | // Debug日志写入到文件 |
| | | //.WriteTo.Async(c => c.File( |
| | | // path: "Logs/Debug.txt", |
| | | // rollingInterval: RollingInterval.Day, |
| | | // fileSizeLimitBytes: 1024 * 1024 * 10, |
| | | // retainedFileCountLimit: 100, |
| | | // outputTemplate: template, |
| | | // restrictedToMinimumLevel: LogEventLevel.Debug)) |
| | | .WriteTo.Async(c => c.File( |
| | | path: "Logs/Verbose.txt", |
| | | rollingInterval: RollingInterval.Day, |
| | | fileSizeLimitBytes: 1024 * 1024 * 10, |
| | | retainedFileCountLimit: 100, |
| | | outputTemplate: template, |
| | | restrictedToMinimumLevel: LogEventLevel.Verbose)) |
| | | // Warning日志写入到文件 |
| | | .WriteTo.Async(c => c.File( |
| | | path: "Logs/Warning_.txt", |