Class UnityConsoleLoggerConfig
Configuration for the Unity Console Logger. Messages routed through FishMMO.Logging.Log will also appear in the Unity console if this logger is enabled and the log level is allowed.
public class UnityConsoleLoggerConfig : ILoggerConfig
- Inheritance
-
UnityConsoleLoggerConfig
- Implements
- Inherited Members
Constructors
UnityConsoleLoggerConfig()
Initializes a new instance of the UnityConsoleLoggerConfig class with default type and logger type names.
public UnityConsoleLoggerConfig()
Properties
AllowedLevels
Gets or sets the collection of LogLevels that this logger is allowed to process. Only messages with levels present in this collection will be forwarded to the Unity console.
public HashSet<LogLevel> AllowedLevels { get; set; }
Property Value
Enabled
Gets or sets a value indicating whether this logger is enabled. If false, no messages will be sent to the Unity console via this logger.
public bool Enabled { get; set; }
Property Value
LogLevelColors
Defines Unity Rich Text color strings for each LogLevel. Keys are LogLevel enum values, values are Unity color names (e.g., "red", "green") or hex codes (e.g., "#FF0000").
public Dictionary<LogLevel, string> LogLevelColors { get; set; }
Property Value
LoggerType
The logger type name (for serialization and identification).
public string LoggerType { get; set; }
Property Value
Type
The type name of this config (for serialization and identification).
public string Type { get; set; }