It appears that the issue was also relevant to windows, but windows somehow compensated? #103
21 lines
473 B
C#
21 lines
473 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Logger
|
|
{
|
|
public class MessageLogger
|
|
{
|
|
private static string _logPath = "log.txt";
|
|
|
|
public static void Log(string message)
|
|
{
|
|
Console.WriteLine(message);
|
|
System.IO.File.WriteAllText(_logPath, string.Format("{0} | {1}", DateTime.Now, message));
|
|
}
|
|
}
|
|
}
|