From d9f371f994bafc7c7eceb40179272507745b8f0d Mon Sep 17 00:00:00 2001 From: Kwoth Date: Sat, 19 Mar 2022 11:19:08 +0100 Subject: [PATCH] Added logging to coordinator, downgraded framework to net5, downgraded grpc packages to 2.41 --- src/NadekoBot.Coordinator/LogSetup.cs | 3 +++ src/NadekoBot.Coordinator/NadekoBot.Coordinator.csproj | 5 +++-- src/NadekoBot/NadekoBot.csproj | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/NadekoBot.Coordinator/LogSetup.cs b/src/NadekoBot.Coordinator/LogSetup.cs index ad01a8c3b..c848cff93 100644 --- a/src/NadekoBot.Coordinator/LogSetup.cs +++ b/src/NadekoBot.Coordinator/LogSetup.cs @@ -15,6 +15,9 @@ namespace NadekoBot.Services .MinimumLevel.Override("System", LogEventLevel.Information) .MinimumLevel.Override("Microsoft.AspNetCore", LogEventLevel.Warning) .Enrich.FromLogContext() + .WriteTo.File("coord.log", LogEventLevel.Information, + rollOnFileSizeLimit: true, + fileSizeLimitBytes: 10_000_000) .WriteTo.Console(LogEventLevel.Information, theme: GetTheme(), outputTemplate: "[{Timestamp:HH:mm:ss} {Level:u3}] | #{LogSource} | {Message:lj}{NewLine}{Exception}") diff --git a/src/NadekoBot.Coordinator/NadekoBot.Coordinator.csproj b/src/NadekoBot.Coordinator/NadekoBot.Coordinator.csproj index 43039d4a5..47be7bad2 100644 --- a/src/NadekoBot.Coordinator/NadekoBot.Coordinator.csproj +++ b/src/NadekoBot.Coordinator/NadekoBot.Coordinator.csproj @@ -1,7 +1,7 @@  - net6.0 + net5.0 @@ -9,9 +9,10 @@ - + + diff --git a/src/NadekoBot/NadekoBot.csproj b/src/NadekoBot/NadekoBot.csproj index 4a35791ab..c146c123b 100644 --- a/src/NadekoBot/NadekoBot.csproj +++ b/src/NadekoBot/NadekoBot.csproj @@ -29,8 +29,8 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive