Add default log levels for FileLoggingConfiguration

This commit is contained in:
Cyberboss
2018-10-05 12:09:46 -04:00
parent 0240c100bd
commit 1a50a65a26
@@ -14,6 +14,16 @@ namespace Tgstation.Server.Host.Configuration
/// </summary>
public const string Section = "FileLogging";
/// <summary>
/// Default value for <see cref="LogLevel"/>
/// </summary>
const LogLevel DefaultLogLevel = LogLevel.Debug;
/// <summary>
/// Default value for <see cref="MicrosoftLogLevel"/>
/// </summary>
const LogLevel DefaultMicrosoftLogLevel = LogLevel.Warning;
/// <summary>
/// Where log files are stored
/// </summary>
@@ -28,13 +38,13 @@ namespace Tgstation.Server.Host.Configuration
/// The <see cref="string"/>ified minimum <see cref="Microsoft.Extensions.Logging.LogLevel"/> to display in logs
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public LogLevel LogLevel { get; set; }
public LogLevel LogLevel { get; set; } = DefaultLogLevel;
/// <summary>
/// The <see cref="string"/>ified minimum <see cref="Microsoft.Extensions.Logging.LogLevel"/> to display in logs for Microsoft library sources
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public LogLevel MicrosoftLogLevel { get; set; }
public LogLevel MicrosoftLogLevel { get; set; } = DefaultMicrosoftLogLevel;
}
}