Class UnityLogListener
Logs entries using Unity specific outputs.
Namespace: BepInEx.Unity.Mono.Logging
Assembly: BepInEx.Unity.Mono.dll
Syntax
public class UnityLogListener : ILogListener, IDisposable
Fields
ConfigUnityLogLevel
Declaration
protected static readonly ConfigEntry<LogLevel> ConfigUnityLogLevel
Field Value
Type | Description |
---|---|
ConfigEntry<LogLevel> |
Properties
What log levels the listener preliminarily wants.
Declaration
public LogLevel LogLevelFilter { get; }
Property Value
Type | Description |
---|---|
LogLevel |
Remarks
The filter is used to more efficiently discard log messages that aren't being listened to. As such, the filter should represent the log levels that the listener will always want to process. It is up to the the implementation of LogEvent(Object, LogEventArgs) whether the messages are going to be processed or discarded.
Methods
Declaration
public void Dispose()
Handle an incoming log event.
Declaration
public void LogEvent(object sender, LogEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
System.Object |
sender |
Log source that sent the event. Don't use; instead use Source |
LogEventArgs |
eventArgs |
Information about the log message. |
Implements
System.IDisposable