NLog Namespace |
Class | Description | |
---|---|---|
GlobalDiagnosticsContext |
Global Diagnostics Context - a dictionary structure to hold per-application-instance values.
| |
ILoggerExtensions |
Extensions for NLog ILogger.
| |
LayoutTypedExtensions |
Extensions for NLog LayoutT.
| |
LogEventInfo |
Represents the logging event.
| |
LogFactory |
Creates and manages instances of Logger objects.
| |
LogFactoryT |
Specialized LogFactory that can return instances of custom logger types.
| |
Logger |
Provides logging interface and utility functions.
| |
LogLevel |
Defines available log levels.
| |
LogManager |
Creates and manages instances of Logger objects.
| |
MappedDiagnosticsContext | Obsolete.
Obsolete and replaced by ScopeContext with NLog v5.
Mapped Diagnostics Context (MDC) is a dictionary of keys and values.
Stores the dictionary in the thread-local static variable, and provides methods to output dictionary values in layouts.
| |
MappedDiagnosticsLogicalContext | Obsolete.
Obsolete and replaced by ScopeContext with NLog v5.
Mapped Diagnostics Logical Context (MDLC) is a dictionary of keys and values.
Stores the dictionary in the logical thread callcontext, and provides methods to output dictionary values in layouts.
Allows for maintaining state across asynchronous tasks and call contexts.
| |
MessageTemplateFormatMethodAttribute |
Mark a parameter of a method for message templating
| |
NestedDiagnosticsContext | Obsolete.
Obsolete and replaced by ScopeContext with NLog v5.
Nested Diagnostics Context (NDC) is a stack of nested values.
Stores the stack in the thread-local static variable, and provides methods to output the values in layouts.
| |
NestedDiagnosticsLogicalContext | Obsolete.
Obsolete and replaced by ScopeContext with NLog v5.
Nested Diagnostics Logical Context (NDLC) is a stack of nested values.
Stores the stack in the logical thread callcontexte, and provides methods to output the values in layouts.
| |
NLogConfigurationException |
Exception thrown during NLog configuration.
| |
NLogRuntimeException |
Exception thrown during log event processing.
| |
NLogTraceListener |
TraceListener which routes all messages through NLog.
| |
NullLogger | ||
ScopeContext | ScopeContext stores state in the async thread execution context. All LogEvents created
within a scope can include the scope state in the target output. The logical context scope supports
both scope-properties and scope-nested-state-stack (Similar to log4j2 ThreadContext)
| |
SetupBuilderExtensions |
Extension methods to setup LogFactory options
| |
SetupExtensionsBuilderExtensions |
Extension methods to setup NLog extensions, so they are known when loading NLog LoggingConfiguration
| |
SetupInternalLoggerBuilderExtensions |
Extension methods to setup NLog InternalLogger options
| |
SetupLoadConfigurationExtensions |
Extension methods to setup NLog LoggingConfiguration | |
SetupLogFactoryBuilderExtensions |
Extension methods to setup general option before loading NLog LoggingConfiguration
| |
SetupSerializationBuilderExtensions |
Extension methods to setup NLog extensions, so they are known when loading NLog LoggingConfiguration
|
Structure | Description | |
---|---|---|
LogEventBuilder |
A fluent builder for logging events to NLog.
|
Interface | Description | |
---|---|---|
IJsonConverter |
Interface for serialization of object values into JSON format
| |
ILogger |
Provides logging interface and utility functions.
| |
IValueFormatter |
Render a message template property to a string
|
Delegate | Description | |
---|---|---|
LogMessageFormatter |
Generates a formatted message from the log event
| |
LogMessageGenerator |
Returns a log message. Used to defer calculation of
the log message until it's actually needed.
|