Class LoggingController
- Namespace
- MonkeyLoader.Logging
- Assembly
- MonkeyLoader.dll
Manages the connection between LoggingHandlers and Loggers.
public sealed class LoggingController
- Inheritance
-
LoggingController
- Inherited Members
Constructors
LoggingController(string)
Creates a new LoggingHandler to control Loggers.
public LoggingController(string id)
Parameters
id
stringThe controller's id.
Properties
AutoFlush
Gets or sets whether this logger will automatically trigger flushing of messages.
public bool AutoFlush { get; set; }
Property Value
FlushTimeout
Gets or sets the time to wait for more logging before flushing after non-critical messages.
public TimeSpan FlushTimeout { get; set; }
Property Value
Remarks
Default: 2 seconds.
Handler
Gets the LoggingHandler used to send logging requests to the game-specific channels.
Messages get queued when it isn't connected and they would otherwise have been logged.
public LoggingHandler Handler { get; set; }
Property Value
Id
Gets this controller's id.
public string Id { get; }
Property Value
Level
public LoggingLevel Level { get; set; }
Property Value
Remarks
Default: Info.
Methods
Flush()
Flushes any not yet fully logged messages.
public void Flush()
ShouldLog(LoggingLevel)
public bool ShouldLog(LoggingLevel level)
Parameters
level
LoggingLevelThe Level to check.