Class FileLoggerConfig
- Namespace
- FishMMO.Logging
- Assembly
- FishMMO-Logger.dll
Configuration for the FileLogger.
public class FileLoggerConfig : ILoggerConfig
- Inheritance
-
FileLoggerConfig
- Implements
- Inherited Members
Constructors
FileLoggerConfig()
public FileLoggerConfig()
Properties
AllowedLevels
The set of log levels that this file logger is allowed to process. Default: All levels from Info to Critical.
public HashSet<LogLevel> AllowedLevels { get; set; }
Property Value
Enabled
Gets or sets whether the logger associated with this configuration is enabled.
public bool Enabled { get; set; }
Property Value
FileName
public string FileName { get; set; }
Property Value
LogDirectory
public string LogDirectory { get; set; }
Property Value
LoggerType
A discriminator property used during JSON deserialization to identify the concrete Logger type.
public string LoggerType { get; set; }
Property Value
MaxFileSizeKB
The maximum size of a single log file in kilobytes (KB). When this size is exceeded, the log file will be rolled over. Default is 10 MB (10 * 1024 KB).
public long MaxFileSizeKB { get; set; }
Property Value
MaxRolloverFiles
The maximum number of rolled-over log files to keep. When a new file is created, the oldest files exceeding this limit will be deleted. Default is 5.
public int MaxRolloverFiles { get; set; }
Property Value
Type
A discriminator property used during JSON deserialization to identify the concrete Logger Config type.
public string Type { get; set; }