[This is preliminary documentation and is subject to change.]

The LogEventInfo type exposes the following members.

Constructors

  NameDescription
LogEventInfoOverloaded.

Methods

  NameDescription
CreateOverloaded.
CreateNullEvent
Creates the null event.
SetStackTrace
Sets the stack trace for the event info.
ToString
Returns a string representation of this log event.
(Overrides ObjectToString()()().)
WithContinuation
Creates AsyncLogEventInfo from this LogEventInfo by attaching the specified asynchronous continuation.

Fields

  NameDescription
ZeroDate
Gets the date of the first log event created.

Properties

  NameDescription
Context Obsolete.
Gets the dictionary of per-event context properties.
Exception
Gets or sets the exception information.
FormatProvider
Gets or sets the format provider that was provided while logging or nullNothingnullptra null reference (Nothing in Visual Basic) when no formatProvider was specified.
FormattedMessage
Gets the formatted message.
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.
LoggerShortName Obsolete.
Gets the logger short name.
Message
Gets or sets the log message including any parameter placeholders.
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
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