diff --git a/src/Tgstation.Server.Host/Core/Application.cs b/src/Tgstation.Server.Host/Core/Application.cs index 51bb634cb5..7117a95628 100644 --- a/src/Tgstation.Server.Host/Core/Application.cs +++ b/src/Tgstation.Server.Host/Core/Application.cs @@ -137,12 +137,14 @@ namespace Tgstation.Server.Host.Core null); logPath = IOManager.ConcatPath(logPath, "tgs-{Date}.log"); - var rollingFileConfig = sinkConfig.RollingFile( + var rollingFileConfig = sinkConfig.File( formatter, logPath, logEventLevel ?? LogEventLevel.Verbose, 50 * 1024 * 1024, // 50MB max size - flushToDiskInterval: TimeSpan.FromSeconds(2)); + flushToDiskInterval: TimeSpan.FromSeconds(2), + rollingInterval: RollingInterval.Day, + rollOnFileSizeLimit: true); }); // configure bearer token validation diff --git a/src/Tgstation.Server.Host/Tgstation.Server.Host.csproj b/src/Tgstation.Server.Host/Tgstation.Server.Host.csproj index 5b9e627a09..4e7ce431c4 100644 --- a/src/Tgstation.Server.Host/Tgstation.Server.Host.csproj +++ b/src/Tgstation.Server.Host/Tgstation.Server.Host.csproj @@ -73,7 +73,7 @@ - + all runtime; build; native; contentfiles; analyzers