FlexitimeTracker/CardReaderService/Logger/MessageLogger.cs
chris.watts90@outlook.com 9f617fdf0a Fix Card UID retrieval for Raspberry PI/linux systems.
It appears that the issue was also relevant to windows, but windows somehow compensated?
#103
2019-09-03 15:31:07 +01:00

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));
}
}
}