diff options
| author | Christoffer Aske <exouxas@gmail.com> | 2021-10-05 20:28:12 +0200 |
|---|---|---|
| committer | Christoffer Aske <exouxas@gmail.com> | 2021-10-05 20:28:12 +0200 |
| commit | 7937590fd9791c4cf6fbe15ad716b823e53f58fb (patch) | |
| tree | 679d6a08695a9cf4a57612b58c98f04bc1c25b60 /src/slskd/Program.cs | |
| parent | 1c790a33ba51598e5d5e9da77cf294c601e702be (diff) | |
| download | slskd-7937590fd9791c4cf6fbe15ad716b823e53f58fb.tar.gz | |
Changed path of logs from "exe path" to "application path"
Diffstat (limited to 'src/slskd/Program.cs')
| -rw-r--r-- | src/slskd/Program.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs index 9590ed48..a4ae699e 100644 --- a/src/slskd/Program.cs +++ b/src/slskd/Program.cs @@ -225,7 +225,7 @@ namespace slskd outputTemplate: (OptionsAtStartup.Debug ? "[{SourceContext}] [{SoulseekContext}] " : string.Empty) + "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}") .WriteTo.Async(config => config.File( - Path.Combine(AppContext.BaseDirectory, "logs", $"{AppName}-.log"), + Path.Combine(OptionsAtStartup.Directories.App, "logs", $"{AppName}-.log"), outputTemplate: (OptionsAtStartup.Debug ? "[{SourceContext}] " : string.Empty) + "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}", rollingInterval: RollingInterval.Day)) .WriteTo.Conditional( |
