From fa3f46c12c40a104dcf842864f432dc1fa09e00f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81=20=D0=91=D0=BE=D0=BD=D0=B4=D0=B0?= =?UTF-8?q?=D1=80=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Wed, 30 Nov 2022 09:34:54 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B3=D0=BE=D1=82=D0=BE=D0=B2=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WarmlyShip/WarmlyShip/WarmlyShip.csproj | 11 +++++++++++ WarmlyShip/WarmlyShip/nlog.config | 13 ------------- WarmlyShip/WarmlyShip/serilogConfig.json | 17 +++++++++++++++++ 3 files changed, 28 insertions(+), 13 deletions(-) delete mode 100644 WarmlyShip/WarmlyShip/nlog.config create mode 100644 WarmlyShip/WarmlyShip/serilogConfig.json diff --git a/WarmlyShip/WarmlyShip/WarmlyShip.csproj b/WarmlyShip/WarmlyShip/WarmlyShip.csproj index edbfc03..316facb 100644 --- a/WarmlyShip/WarmlyShip/WarmlyShip.csproj +++ b/WarmlyShip/WarmlyShip/WarmlyShip.csproj @@ -8,10 +8,21 @@ enable + + + + + + + Always + + + + diff --git a/WarmlyShip/WarmlyShip/nlog.config b/WarmlyShip/WarmlyShip/nlog.config deleted file mode 100644 index 7164133..0000000 --- a/WarmlyShip/WarmlyShip/nlog.config +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/WarmlyShip/WarmlyShip/serilogConfig.json b/WarmlyShip/WarmlyShip/serilogConfig.json new file mode 100644 index 0000000..8272717 --- /dev/null +++ b/WarmlyShip/WarmlyShip/serilogConfig.json @@ -0,0 +1,17 @@ +{ + "Serilog": { + "Using": [ "Serilog.Sinks.File" ], + "MinimumLevel": "Information", + "WriteTo": [ + { + "Name": "File", + "Args": { + "path": "Logs/log_.log", + "rollingInterval": "Day", + "outputTemplate": "{Level:u4}: {Message:lj} [{Timestamp:HH:mm:ss.fff}]{NewLine}" + } + } + ], + "Enrich": [ "FromLogContext", "WithMachineName", "WithThreadId" ] + } + } \ No newline at end of file