From f32fc6a05e52244695b4caa53f4508b53ae6eff8 Mon Sep 17 00:00:00 2001
From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch>
Date: Thu, 7 Jun 2018 11:50:39 +0200
Subject: [PATCH] Fix path for Tray app log file

Fixes #43
---
 ATxTray/AutoTxTray.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ATxTray/AutoTxTray.cs b/ATxTray/AutoTxTray.cs
index cf24f6a..787d006 100644
--- a/ATxTray/AutoTxTray.cs
+++ b/ATxTray/AutoTxTray.cs
@@ -130,7 +130,7 @@ namespace ATxTray
         private static void SetupLogging() {
             var logConfig = new LoggingConfiguration();
             var fileTarget = new FileTarget {
-                FileName = Path.GetFileNameWithoutExtension(Application.ExecutablePath) + ".log",
+                FileName = $"var/{Path.GetFileNameWithoutExtension(Application.ExecutablePath)}.log",
                 Layout = @"${date:format=yyyy-MM-dd HH\:mm\:ss} [${level}] ${message}"
                 // Layout = @"${date:format=yyyy-MM-dd HH\:mm\:ss} [${level}] (${logger}) ${message}"
             };
-- 
GitLab