LoggingOptions
[TypeConverter(typeof(LoggingOptionsTypeConverter))]
public class LoggingOptions
1. Attributes
1.1. TypeConverter
TypeConverter
2. Constructors
2.1. LoggingOptions()
public LoggingOptions()
2.2. LoggingOptions(LogLevel)
public LoggingOptions(LogLevel consoleLogLevel)
| Name | Type | Description |
|---|---|---|
consoleLogLevel |
LogLevel |
3. Fields
3.1. DefaultConsoleLogLevel
public static LogLevel DefaultConsoleLogLevel
3.2. DefaultLogsPath
public const string DefaultLogsPath
3.3. SectionName
public const string SectionName
4. Properties
4.1. ConsoleLogLevel
[JsonConverter(typeof(LogLevelJsonConverter))]
public LogLevel? ConsoleLogLevel { get; set; }
4.2. LogsPathOverride
public string LogsPathOverride { get; set; }
4.3. NamespaceLogLevelOverrides
[JsonConverter(typeof(NamespaceLogLevelDictionaryJsonConverter))]
public Dictionary<string, LogLevel?> NamespaceLogLevelOverrides { get; set; }
5. Methods
5.1. FromJsonFile(string, string)
public static LoggingOptions FromJsonFile(string file, string sectionName = null)
| Name | Type | Description |
|---|---|---|
file |
string |
|
sectionName |
string |
Returns: LoggingOptions
5.2. ToString()
public override string ToString()
Returns: string
5.3. TryRegisterConverter()
public static void TryRegisterConverter()