A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://nlog-project.org/documentation/v4.7.0/html/T_NLog_LogEventInfo.htm below:

LogEventInfo Class

Represents the logging event.

Inheritance Hierarchy Namespace:  NLog
Assembly:

NLog (in NLog.dll) Version: 4.7.0+4d138800820311d0b60b6437f1dd2ed1d571d47d

Syntax
public class LogEventInfo
Public Class LogEventInfo

Dim instance As LogEventInfo
type LogEventInfo =  class end

The LogEventInfo type exposes the following members.

Constructors   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, IFormatProvider, String, Object)

Initializes a new instance of the LogEventInfo class.

LogEventInfo(LogLevel, String, IFormatProvider, String, Object, Exception)

Initializes a new instance of the LogEventInfo class.

Top Properties   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

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 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.

LoggerShortName Obsolete.

Gets the logger short 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

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).

Top Methods   Name Description Create(LogLevel, String, String)

Creates the log event.

Create(LogLevel, String, IFormatProvider, Object)

Creates the log event.

Create(LogLevel, String, String, Exception) Obsolete.

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.

Top Fields   Name Description ZeroDate

Gets the date of the first log event created.

Top See Also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4