<PackageReference Include="NLog" Version="6.1.3" />

NLog

Namespace with 32 public types

Classes

 LogEventInfo Represents the logging event.
 LogFactory Creates and manages instances of objects.
 LogFactory`1 Specialized LogFactory that can return instances of custom logger types.
 Logger Provides logging interface and utility functions.
 LogLevel Defines available log levels.
 MessageTemplateFormatMethodAttribute Mark a parameter of a method for message templating
 NLogConfigurationException Exception thrown during NLog configuration.
 NLogRuntimeException Exception thrown during log event processing.
 NullLogger It works as a normal but it discards all messages which an application requests to be logged. It effectively implements the "Null Object" pattern for objects.

Structures

 LogEventBuilder A fluent builder for logging events to NLog.

Static Classes

 GlobalDiagnosticsContext Global Diagnostics Context - a dictionary structure to hold per-application-instance values.
 ILoggerExtensions Extensions for NLog .
 LayoutTypedExtensions Extensions for NLog .
 LogManager Creates and manages instances of objects.
 MappedDiagnosticsContext Obsolete and replaced by 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 and replaced by 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.
 NestedDiagnosticsContext Obsolete and replaced by 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 and replaced by 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.
 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 options
 SetupLoadConfigurationExtensions Extension methods to setup NLog
 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

Interfaces

 IJsonConverter Interface for serialization of object values into JSON format
 ILogger Provides logging interface and utility functions.
 ILoggerBase Obsolete and replaced by with NLog v5.3. Logger with only generic methods (passing 'LogLevel' to methods) and core properties.
 ISuppress Obsolete and replaced by with NLog v5.3. Provides an interface to execute System.Actions without surfacing any exceptions raised for that action.
 IValueFormatter Render a message template property to a string