Class LogEventArgs
Log event arguments. Contains info about the log message.
Namespace: BepInEx.Logging
Assembly: BepInEx.Core.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; }
Property Value
Type | Description |
---|---|
System.Object |
Log levels for the data.
Declaration
public LogLevel Level { get; }
Property Value
Type | Description |
---|---|
LogLevel |
Log source that emitted the log event.
Declaration
public ILogSource Source { get; }
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. |