Skip to content

Commit

Permalink
Log to file fix
Browse files Browse the repository at this point in the history
I forgor to add slash after "logs"  💀
  • Loading branch information
DareFox committed Feb 12, 2022
1 parent 3c651c7 commit 9ce9aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IdleSharedLib/Logger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace IdleSharedLib
public class Logger
{
private static string file = $"{DateTimeOffset.Now.ToUnixTimeSeconds()}-{Environment.ProcessId}-{Process.GetCurrentProcess().ProcessName}.txt";
private static string dir = Environment.CurrentDirectory + "/logs";
private static string dir = Environment.CurrentDirectory + "\\logs\\";
public static void Log(string message)
{
var formatedMessage = $"[LOG, {DateTime.Now}] " + message.Trim();
Expand Down

0 comments on commit 9ce9aa1

Please sign in to comment.