aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Program.cs
diff options
context:
space:
mode:
authorChristoffer Aske <exouxas@gmail.com>2021-10-05 20:28:12 +0200
committerChristoffer Aske <exouxas@gmail.com>2021-10-05 20:28:12 +0200
commit7937590fd9791c4cf6fbe15ad716b823e53f58fb (patch)
tree679d6a08695a9cf4a57612b58c98f04bc1c25b60 /src/slskd/Program.cs
parent1c790a33ba51598e5d5e9da77cf294c601e702be (diff)
downloadslskd-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.cs2
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(