tgstation-server  4.3.2
The /tg/station 13 server suite
FileLoggingConfiguration.cs
Go to the documentation of this file.
1 using Microsoft.Extensions.Logging;
2 using Newtonsoft.Json;
3 using Newtonsoft.Json.Converters;
4 
5 namespace Tgstation.Server.Host.Configuration
6 {
11  {
15  public const string Section = "FileLogging";
16 
20  const LogLevel DefaultLogLevel = LogLevel.Debug;
21 
25  const LogLevel DefaultMicrosoftLogLevel = LogLevel.Warning;
26 
30  public string Directory { get; set; }
31 
35  public bool Disable { get; set; }
36 
40  [JsonConverter(typeof(StringEnumConverter))]
41  public LogLevel LogLevel { get; set; } = DefaultLogLevel;
42 
46  [JsonConverter(typeof(StringEnumConverter))]
47  public LogLevel MicrosoftLogLevel { get; set; } = DefaultMicrosoftLogLevel;
48  }
49 }