Skip to content
Snippets Groups Projects
Commit f32fc6a0 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Fix path for Tray app log file

Fixes #43
parent f5212509
No related branches found
No related tags found
No related merge requests found
......@@ -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}"
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment