diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-10-23 13:17:54 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2022-10-23 13:17:54 -0500 |
| commit | 4243b00598a859b7ff2d95a8d1908c1fb1b379ad (patch) | |
| tree | 611c9b089cbe9adac2933c3b83c357127ceba93e /src | |
| parent | 89900c6646c0e0a17c573f152e6c31c8506df022 (diff) | |
| download | slskd-4243b00598a859b7ff2d95a8d1908c1fb1b379ad.tar.gz | |
display SourceContext when debugging
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Program.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs index 197032db..c6557083 100644 --- a/src/slskd/Program.cs +++ b/src/slskd/Program.cs @@ -883,11 +883,11 @@ namespace slskd .Enrich.WithProperty("ProcessId", ProcessId) .Enrich.FromLogContext() .WriteTo.Console( - outputTemplate: (OptionsAtStartup.Debug ? "[{SubContext}] " : string.Empty) + "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}") + outputTemplate: (OptionsAtStartup.Debug ? "[{SourceContext}] " : string.Empty) + "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}") .WriteTo.Async(config => config.File( Path.Combine(AppDirectory, "logs", $"{AppName}-.log"), - outputTemplate: (OptionsAtStartup.Debug ? "[{SubContext}] " : string.Empty) + "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}", + outputTemplate: (OptionsAtStartup.Debug ? "[{SourceContext}] " : string.Empty) + "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}", rollingInterval: RollingInterval.Day)) .WriteTo.Conditional( e => !string.IsNullOrEmpty(OptionsAtStartup.Logger.Loki), |
