From 1a50a65a2678ad8ea0a2fc9aa2d3c00a6c3c4fe4 Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Fri, 5 Oct 2018 12:09:46 -0400 Subject: [PATCH] Add default log levels for FileLoggingConfiguration --- .../Configuration/FileLoggingConfiguration.cs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/Tgstation.Server.Host/Configuration/FileLoggingConfiguration.cs b/src/Tgstation.Server.Host/Configuration/FileLoggingConfiguration.cs index 2b731639cc..7beb0a4477 100644 --- a/src/Tgstation.Server.Host/Configuration/FileLoggingConfiguration.cs +++ b/src/Tgstation.Server.Host/Configuration/FileLoggingConfiguration.cs @@ -14,6 +14,16 @@ namespace Tgstation.Server.Host.Configuration /// public const string Section = "FileLogging"; + /// + /// Default value for + /// + const LogLevel DefaultLogLevel = LogLevel.Debug; + + /// + /// Default value for + /// + const LogLevel DefaultMicrosoftLogLevel = LogLevel.Warning; + /// /// Where log files are stored /// @@ -28,13 +38,13 @@ namespace Tgstation.Server.Host.Configuration /// The ified minimum to display in logs /// [JsonConverter(typeof(StringEnumConverter))] - public LogLevel LogLevel { get; set; } + public LogLevel LogLevel { get; set; } = DefaultLogLevel; /// /// The ified minimum to display in logs for Microsoft library sources /// [JsonConverter(typeof(StringEnumConverter))] - public LogLevel MicrosoftLogLevel { get; set; } + public LogLevel MicrosoftLogLevel { get; set; } = DefaultMicrosoftLogLevel; } }