From ca0244cf60a99bcaf3eba56b4bf5155822a9af70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Wagenf=C3=BChr?= Date: Fri, 8 Apr 2022 15:03:26 +0200 Subject: [PATCH] fix: write logs to current execution directory Closes #72 --- src/CsvProc9000/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CsvProc9000/Program.cs b/src/CsvProc9000/Program.cs index baa4215..f93d7e8 100644 --- a/src/CsvProc9000/Program.cs +++ b/src/CsvProc9000/Program.cs @@ -65,7 +65,7 @@ private static ILogger ConfigureSerilogLogging(IConfiguration configuration) .Enrich.FromLogContext() .WriteTo.Console() .WriteTo.File( - "./logs/application-log.log", + $"{AppDomain.CurrentDomain.BaseDirectory}/logs/application-log.log", fileSizeLimitBytes: null, retainedFileCountLimit: null, rollingInterval: RollingInterval.Day)