NLog Logging Library

LogEventInfo Members

LogEventInfo overview

Public Static (Shared) Fields

Empty An empty event - for rendering layouts where logging event is not otherwise available.
ZeroDate The date of the first log event created.

Public Instance Constructors

LogEventInfo Overloaded. Initializes a new instance of the LogEventInfo class.

Public Instance Properties

CallContext Gets the dictionary of call context properties.
Exception Gets or sets the exception information.
FormatProvider Gets the format provider that was provided while logging or a null reference (Nothing in Visual Basic) when no formatProvider was specified.
FormattedMessage Returns the formatted message.
HasStackTrace Returns true if 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.
LoggerShortName Gets the logger short name.
Message Gets the raw log message including any parameter placeholders.
Parameters Gets the parameter values or a null reference (Nothing in Visual Basic) if no parameters have been specified.
SequenceID 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 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)

See Also

LogEventInfo Class | NLog Namespace