mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 08:33:19 +01:00
Add default log levels for FileLoggingConfiguration
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user