ILogListener Interface
Definition
Section titled “Definition”A generic log listener that receives log events and can route them to some output (e.g. file, console, socket).
public interface ILogListener : IDisposable
Properties
Section titled “Properties”LogLevelFilter
Section titled “LogLevelFilter”What log levels the listener preliminarily wants.
LogLevel LogLevelFilter { get; }
Remarks
Section titled “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 BepInEx.Logging.ILogListener.LogEvent(System.Object%2cBepInEx.Logging.LogEventArgs)
whether the messages are going to be processed or discarded.
Methods
Section titled “Methods”LogEvent(object, LogEventArgs)
Section titled “LogEvent(object, LogEventArgs)”Handle an incoming log event.
void LogEvent(object sender, LogEventArgs eventArgs)
Parameters
Section titled “Parameters”sender
object
Log source that sent the event. Don’t use; instead use
eventArgs
LogEventArgs
Information about the log message.