Click or drag to resize
LogEventInfo Class
Represents the logging event.
Inheritance Hierarchy
SystemObject
  NLogLogEventInfo

Namespace: NLog
Assembly: NLog (in NLog.dll) Version: 4.3.0
Syntax
public class LogEventInfo

The LogEventInfo type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyContext Obsolete.
Gets the dictionary of per-event context properties.
Public propertyException
Gets or sets the exception information.
Public propertyFormatProvider
Gets or sets the format provider that was provided while logging or when no formatProvider was specified.
Public propertyFormattedMessage
Gets the formatted message.
Public propertyHasStackTrace
Gets a value indicating whether stack trace has been set for this event.
Public propertyLevel
Gets or sets the level of the logging event.
Public propertyLoggerName
Gets or sets the logger name.
Public propertyLoggerShortName Obsolete.
Gets the logger short name.
Public propertyMessage
Gets or sets the log message including any parameter placeholders.
Public propertyParameters
Gets or sets the parameter values or null if no parameters have been specified.
Public propertyProperties
Gets the dictionary of per-event context properties.
Public propertySequenceID
Gets the unique identifier of log event which is automatically generated and monotonously increasing.
Public propertyStackTrace
Gets the entire stack trace.
Public propertyTimeStamp
Gets or sets the timestamp of the logging event.
Public propertyUserStackFrame
Gets the stack frame of the method that did the logging.
Public propertyUserStackFrameNumber
Gets the number index of the stack frame that represents the user code (not the NLog code).
Top
Methods
Fields
  NameDescription
Public fieldStatic memberZeroDate
Gets the date of the first log event created.
Top
See Also