Skip to content

Commit 3c7bb66

Browse files
author
rosenrusinov
committed
fix(logs): fix log paths
1 parent d06c73e commit 3c7bb66

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

MainForm.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
using Serilog;
2-
using Microsoft.Extensions.Logging;
1+
using Microsoft.Extensions.Logging;
2+
using Serilog;
33
using System;
4+
using System.IO;
45
using System.Net.NetworkInformation;
56
using System.Windows.Forms;
67

@@ -18,7 +19,7 @@ public MainForm()
1819
{
1920
// Configure Serilog
2021
Log.Logger = new LoggerConfiguration()
21-
.WriteTo.File( "logs/app.log", rollingInterval: RollingInterval.Day )
22+
.WriteTo.File( Path.Combine( Application.LocalUserAppDataPath, "WoWSims", "logs", "app.log" ), rollingInterval: RollingInterval.Day )
2223
.CreateLogger();
2324

2425
// Configure logging

0 commit comments

Comments
 (0)