Adding final project to dev branch
This commit is contained in:
11
WguApp/Services/LoggerService.cs
Normal file
11
WguApp/Services/LoggerService.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace WguApp.Services;
|
||||
|
||||
public class LoggerService
|
||||
{
|
||||
public static void LogToFile(string text)
|
||||
{
|
||||
var logFilePath = Path.Combine(FileSystem.AppDataDirectory, "log.txt");
|
||||
|
||||
File.AppendAllText(logFilePath, $"{DateTime.UtcNow} : {text}\n");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user