Interface ILoggerConfig
- Namespace
- FishMMO.Logging
- Assembly
- FishMMO-Logger.dll
Defines the common interface for all logger configurations. This allows for a flexible list of different logger types in the main LoggingConfig.
[JsonConverter(typeof(ILoggerConfigConverter))]
public interface ILoggerConfig
Properties
AllowedLevels
Gets or sets the set of log levels that this logger is allowed to process. If a log entry's level is not in this set, it will be ignored by this logger.
HashSet<LogLevel> AllowedLevels { get; set; }
Property Value
Enabled
Gets or sets whether the logger associated with this configuration is enabled.
bool Enabled { get; set; }
Property Value
LoggerType
A discriminator property used during JSON deserialization to identify the concrete Logger type.
string LoggerType { get; set; }
Property Value
Type
A discriminator property used during JSON deserialization to identify the concrete Logger Config type.
string Type { get; set; }