From 82ea3c5f02c3e5a8a9892dc49d9f9da18d67178e Mon Sep 17 00:00:00 2001 From: YourDax Date: Tue, 12 Dec 2023 12:25:37 +0400 Subject: [PATCH] =?UTF-8?q?=D1=83=D0=B4=D0=B0=D0=BB=D0=B8=D0=BB=20=D0=BD?= =?UTF-8?q?=D0=B5=D0=BD=D1=83=D0=B6=D0=BD=D1=8B=D0=B9=20=D0=BA=D0=BB=D0=B0?= =?UTF-8?q?=D1=81=D1=81=20logger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AntiAirCraftGun/AntiAirCraftGun/Logger.cs | 15 --------------- AntiAirCraftGun/AntiAirCraftGun/serilog.json | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 15 deletions(-) delete mode 100644 AntiAirCraftGun/AntiAirCraftGun/Logger.cs create mode 100644 AntiAirCraftGun/AntiAirCraftGun/serilog.json 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