Skip to content
This repository was archived by the owner on Mar 26, 2021. It is now read-only.

Commit 1005922

Browse files
committed
Fix log path on windows
1 parent d13d3ac commit 1005922

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

OpenChart/src/App.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using Serilog;
77
using System;
88
using System.IO;
9-
using System.Runtime;
109

1110
namespace OpenChart
1211
{
@@ -54,7 +53,7 @@ public static bool Init()
5453
outputTemplate: "[{Timestamp:HH:mm:ss.fff} {Level:u3}] {Message:lj}{NewLine}{Exception}"
5554
)
5655
.WriteTo.File(
57-
"logs/OpenChart.log",
56+
Path.Join("logs", "OpenChart.log"),
5857
outputTemplate: "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff}] {ShortLevel} {Message:lj}{NewLine}{Exception}"
5958
)
6059
.CreateLogger();

0 commit comments

Comments
 (0)