diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-10-03 14:42:14 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-10-03 14:42:14 -0500 |
| commit | a97a425c7121f19c1613106c0bab7a1dcf616f92 (patch) | |
| tree | fb9136e240bca7ca9b41320c4a473731da5d4dab /src/slskd/Program.cs | |
| parent | 072a8338e92d154772db678cf5f182d9c6150fc3 (diff) | |
| parent | c2a9302741e79165978fa91da040b6f7e689cc48 (diff) | |
| download | slskd-a97a425c7121f19c1613106c0bab7a1dcf616f92.tar.gz | |
Merge pull request #1865 from slskd/logs
Add a 'History' tab to Logs view to access and download log files
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 => |
