From 7937590fd9791c4cf6fbe15ad716b823e53f58fb Mon Sep 17 00:00:00 2001 From: Christoffer Aske Date: Tue, 5 Oct 2021 20:28:12 +0200 Subject: Changed path of logs from "exe path" to "application path" --- src/slskd/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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( -- cgit v1.2.3