Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aiqinxuancai committed Oct 7, 2023
1 parent c316e6b commit 018db84
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion WkyFast/Utils/SimpleLogger.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
Expand All @@ -20,7 +21,10 @@ public class SimpleLogger
public SimpleLogger()
{
datetimeFormat = "yyyy-MM-dd HH:mm:ss.fff";
logFilename = System.Reflection.Assembly.GetExecutingAssembly().GetName().Name + FILE_EXT;

string appDataPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
string appName = System.Reflection.Assembly.GetExecutingAssembly().GetName().Name ?? "WkyFast";
string logFilename = Path.Combine(appDataPath, appName, appName + FILE_EXT);

// Log file header line
string logHeader = logFilename + " is created.";
Expand Down

0 comments on commit 018db84

Please sign in to comment.