Class LogEventArgs

Log event arguments. Contains info about the log message.

Inheritance
System.Object System.EventArgs LogEventArgs
Inherited Members
System.EventArgs.Empty System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone()
Namespace: BepInEx.Logging
Assembly: BepInEx.Core.dll
Syntax
public class LogEventArgs : EventArgs

Constructors

LogEventArgs(Object, LogLevel, ILogSource)

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

Data

Logged data.

Declaration
public object Data { get; }
Property Value
Type Description
System.Object

Level

Log levels for the data.

Declaration
public LogLevel Level { get; }
Property Value
Type Description
LogLevel

Source

Log source that emitted the log event.

Declaration
public ILogSource Source { get; }
Property Value
Type Description
ILogSource

Methods

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

ToStringLine()

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.