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