diff --git a/AntiAirCraftGun/AntiAirCraftGun/Logger.cs b/AntiAirCraftGun/AntiAirCraftGun/Logger.cs deleted file mode 100644 index 5207e32..0000000 --- a/AntiAirCraftGun/AntiAirCraftGun/Logger.cs +++ /dev/null @@ -1,15 +0,0 @@ -using Serilog; - -namespace AntiAircraftGun -{ - public static class Logger - { - public static void ConfigureLogger() - { - Log.Logger = new LoggerConfiguration() - .WriteTo.File("log.txt") - .MinimumLevel.Debug() - .CreateLogger(); - } - } -} diff --git a/AntiAirCraftGun/AntiAirCraftGun/serilog.json b/AntiAirCraftGun/AntiAirCraftGun/serilog.json new file mode 100644 index 0000000..9b5eb1f --- /dev/null +++ b/AntiAirCraftGun/AntiAirCraftGun/serilog.json @@ -0,0 +1,15 @@ +{ +"Serilog": { + "WriteTo": [ + { + "Name": "File", + "Args": { + "path": "log.txt" + } + } + ], + "MinimumLevel": { + "Default": "Debug" + } + } +} \ No newline at end of file