Class LogEventArgs
Log event arguments. Contains info about the log message.
Namespace: BepInEx.Logging
Assembly: BepInEx.dll
Syntax
public class LogEventArgs : EventArgs
Constructors
Creates the log event args-
Declaration
public LogEventArgs(object data, LogLevel level, ILogSource source)
Parameters
Type | Name | Description |
---|---|---|
System.Object |
data |
Logged data. |
LogLevel |
level |
Log level of the data. |
ILogSource |
source |
Log source that emits these args. |
Properties
Logged data.
Declaration
public object Data { get; protected set; }
Property Value
Type | Description |
---|---|
System.Object |
Log levels for the data.
Declaration
public LogLevel Level { get; protected set; }
Property Value
Type | Description |
---|---|
LogLevel |
Log source that emitted the log event.
Declaration
public ILogSource Source { get; protected set; }
Property Value
Type | Description |
---|---|
ILogSource |
Methods
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()
Like ToString() but appends newline at the end.
Declaration
public string ToStringLine()
Returns
Type | Description |
---|---|
System.String |
Same output as ToString() but with new line. |