![]() | LogEventInfo Class |
Namespace: NLog
The LogEventInfo type exposes the following members.
Name | Description | |
---|---|---|
![]() | LogEventInfo |
Initializes a new instance of the LogEventInfo class.
|
![]() | LogEventInfo(LogLevel, String, String) |
Initializes a new instance of the LogEventInfo class.
|
![]() | LogEventInfo(LogLevel, String, String, IListMessageTemplateParameter) |
Initializes a new instance of the LogEventInfo class.
|
![]() | LogEventInfo(LogLevel, String, String, IReadOnlyListKeyValuePairObject, Object) |
Initializes a new instance of the LogEventInfo class.
|
![]() | LogEventInfo(LogLevel, String, IFormatProvider, String, Object) |
Initializes a new instance of the LogEventInfo class.
|
![]() | LogEventInfo(LogLevel, String, String, String, IListMessageTemplateParameter) |
Initializes a new instance of the LogEventInfo class.
|
![]() | LogEventInfo(LogLevel, String, IFormatProvider, String, Object, Exception) |
Initializes a new instance of the LogEventInfo class.
|
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).
|
Name | Description | |
---|---|---|
![]() ![]() | Create(LogLevel, String, String) |
Creates the log event.
|
![]() ![]() | Create(LogLevel, String, IFormatProvider, Object) |
Creates the log event.
|
![]() ![]() | Create(LogLevel, String, Exception, IFormatProvider, String) |
Creates the log event.
|
![]() ![]() | Create(LogLevel, String, IFormatProvider, String, Object) |
Creates the log event.
|
![]() ![]() | Create(LogLevel, String, Exception, IFormatProvider, String, Object) |
Creates the log event.
|
![]() ![]() | CreateNullEvent |
Creates the null event.
|
![]() | SetCallerInfo |
Sets the details retrieved from the Caller Information Attributes
|
![]() | 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.
|