Skip to content

LogEventArgs Class

Log event arguments. Contains info about the log message.

C#
public class LogEventArgs : EventArgs

Inheritance objectEventArgs

LogEventArgs(object, LogLevel, ILogSource)

Section titled “LogEventArgs(object, LogLevel, ILogSource)”

Creates the log event args-

C#
public LogEventArgs(object data, LogLevel level, ILogSource source)

data object
Logged data.

level LogLevel
Log level of the data.

source ILogSource
Log source that emits these args.

Logged data.

C#
public object Data { get; }

Log levels for the data.

C#
public LogLevel Level { get; }

Log source that emitted the log event.

C#
public ILogSource Source { get; }

Returns a string that represents the current object.

C#
public override string ToString()

string
A string that represents the current object.

Like ToString() but appends newline at the end.

C#
public string ToStringLine()

string
Same output as ToString() but with new line.