LogEventArgs Class
Definition
Section titled “Definition”Log event arguments. Contains info about the log message.
public class LogEventArgs : EventArgs
Inheritance object → EventArgs
Constructors
Section titled “Constructors”LogEventArgs(object, LogLevel, ILogSource)
Section titled “LogEventArgs(object, LogLevel, ILogSource)”Creates the log event args-
public LogEventArgs(object data, LogLevel level, ILogSource source)
Parameters
Section titled “Parameters”data
object
Logged data.
level
LogLevel
Log level of the data.
source
ILogSource
Log source that emits these args.
Properties
Section titled “Properties”Logged data.
public object Data { get; }
Log levels for the data.
public LogLevel Level { get; }
Source
Section titled “Source”Log source that emitted the log event.
public ILogSource Source { get; }
Methods
Section titled “Methods”ToString()
Section titled “ToString()”Returns a string that represents the current object.
public override string ToString()
Returns
Section titled “Returns”string
A string that represents the current object.
ToStringLine()
Section titled “ToStringLine()”Like ToString() but appends newline at the end.
public string ToStringLine()
Returns
Section titled “Returns”string
Same output as ToString() but with new line.