LogEventInfo Properties |
The LogEventInfo type exposes the following members.
Name | Description | |
---|---|---|
CallerClassName |
Gets the callsite class name
| |
CallerFilePath |
Gets the callsite source file path
| |
CallerLineNumber |
Gets the callsite source file line number
| |
CallerMemberName |
Gets the callsite member function name
| |
Exception |
Gets or sets the exception information.
| |
FormatProvider |
Gets or sets the format provider that was provided while logging or
when no formatProvider was specified.
| |
FormattedMessage |
Gets the formatted message.
| |
HasProperties |
Checks if any per-event properties (Without allocation)
| |
HasStackTrace |
Gets a value indicating whether stack trace has been set for this event.
| |
Level |
Gets or sets the level of the logging event.
| |
LoggerName |
Gets or sets the logger name.
| |
Message |
Gets or sets the log message including any parameter placeholders.
| |
MessageFormatter |
Gets or sets the message formatter for generating FormattedMessage
Uses string.Format(...) when nothing else has been configured.
| |
MessageTemplateParameters |
Gets the named parameters extracted from parsing Message as MessageTemplate
| |
Parameters |
Gets or sets the parameter values or null if no parameters have been specified.
| |
Properties |
Gets the dictionary of per-event context properties.
| |
SequenceID |
Gets the unique identifier of log event which is automatically generated
and monotonously increasing.
| |
StackTrace |
Gets the entire stack trace.
| |
TimeStamp |
Gets or sets the timestamp of the logging event.
| |
UserStackFrame | Obsolete.
Obsolete and replaced by CallerMemberName or ${callsite} with NLog v5.3.
Gets the stack frame of the method that did the logging.
| |
UserStackFrameNumber |
Gets the number index of the stack frame that represents the user
code (not the NLog code).
|