Click or drag to resize
NLog Namespace
Logging interface, context classes
Classes
  ClassDescription
Public classGDC Obsolete.
Global Diagnostics Context - used for log4net compatibility.
Public classGlobalDiagnosticsContext
Global Diagnostics Context - a dictionary structure to hold per-application-instance values.
Public classLogEventInfo
Represents the logging event.
Public classLogFactory
Creates and manages instances of Logger objects.
Public classLogFactoryT
Specialized LogFactory that can return instances of custom logger types.
Public classLogger
Provides logging interface and utility functions.
Public classLogLevel
Defines available log levels.
Public classLogManager
Creates and manages instances of Logger objects.
Public classMappedDiagnosticsContext
Mapped Diagnostics Context - a thread-local structure that keeps a dictionary of strings and provides methods to output them in layouts. Mostly for compatibility with log4net.
Public classMappedDiagnosticsLogicalContext
Async version of Mapped Diagnostics Context - a logical context structure that keeps a dictionary of strings and provides methods to output them in layouts. Allows for maintaining state across asynchronous tasks and call contexts.
Public classMDC Obsolete.
Mapped Diagnostics Context - used for log4net compatibility.
Public classNDC Obsolete.
Nested Diagnostics Context - for log4net compatibility.
Public classNestedDiagnosticsContext
Nested Diagnostics Context - a thread-local structure that keeps a stack of strings and provides methods to output them in layouts Mostly for compatibility with log4net.
Public classNLogConfigurationException
Exception thrown during NLog configuration.
Public classNLogRuntimeException
Exception thrown during log event processing.
Public classNLogTraceListener
TraceListener which routes all messages through NLog.
Interfaces
  InterfaceDescription
Public interfaceILogger
Provides logging interface and utility functions.
Public interfaceILoggerBase
Logger with only generic methods (passing 'LogLevel' to methods) and core properties.
Public interfaceISuppress
Provides an interface to execute System.Actions without surfacing any exceptions raised for that action.
Delegates
  DelegateDescription
Public delegateLogManagerGetCultureInfo Obsolete.
Delegate used to set/get the culture in use.
Public delegateLogMessageGenerator
Returns a log message. Used to defer calculation of the log message until it's actually needed.