diff options
| author | Paul <jappe+github@posteo.de> | 2026-10-07 02:57:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-10-07 02:57:21 +0200 |
| commit | 97bfb7c1777d944859f6c6eeef4894daa18203b8 (patch) | |
| tree | 51b364fc76f7a0f37b1efcd7fe2295080ceb01cb /src/slskd/Program.cs | |
| parent | 357effeedf8439459004f113bb532a7011e95fe5 (diff) | |
| parent | 7c302a753b1814345fcb26eb78dec97db6b698df (diff) | |
| download | slskd-97bfb7c1777d944859f6c6eeef4894daa18203b8.tar.gz | |
Merge branch 'master' into fix/upload-retry-button
Diffstat (limited to 'src/slskd/Program.cs')
| -rw-r--r-- | src/slskd/Program.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs index b1f57ce4..cfe8bcba 100644 --- a/src/slskd/Program.cs +++ b/src/slskd/Program.cs @@ -1250,9 +1250,10 @@ namespace slskd e => !OptionsAtStartup.Logger.NoDisk, config => config.File( Path.Combine(LogDirectory, $"{AppName}-.log"), - outputTemplate: (OptionsAtStartup.Debug ? "[{SourceContext}] " : string.Empty) + "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}", + outputTemplate: (OptionsAtStartup.Debug ? "[{SourceContext}] " : string.Empty) + "[{Timestamp:yyyy-MM-ddTHH:mm:ss.fff} {Level:u3}] {Message:lj}{NewLine}{Exception}", rollingInterval: RollingInterval.Day, - retainedFileTimeLimit: TimeSpan.FromDays(OptionsAtStartup.Retention.Logs)))) + retainedFileTimeLimit: TimeSpan.FromDays(OptionsAtStartup.Retention.Logs), + shared: true))) // allow log file to be read concurrently .WriteTo.Conditional( e => !string.IsNullOrEmpty(OptionsAtStartup.Logger.Loki), config => |
