NLog Logging Library

NLog Namespace

Namespace hierarchy

Classes

Class Description
ConditionMethodAttribute Marks class as a log event Condition and assigns a name to it
ConditionMethodFactory A factory of condition methods. Retrieves condition MethodInfos based on their names.
ConditionMethodsAttribute Marks the class as containing condition methods.
ExtensionUtils A class that loads and manages NLog extension assemblies.
Filter An abstract filter class. Provides a way to eliminate log messages based on properties other than logger name and log level.
FilterAttribute Marks class as a layout renderer and assigns a name to it
FilterCollection A collection of elements of type Filter
FilterCollection.Enumerator Type-specific enumeration class, used by FilterCollection.GetEnumerator.
FilterFactory A factory of logging filters. Creates new filters based on their names.
GDC Global Diagnostics Context - a dictionary structure to hold per-application-instance values.
Layout Represents a string with embedded placeholders that can render contextual information.
LayoutCollection A collection of elements of type Layout
LayoutCollection.Enumerator Type-specific enumeration class, used by LayoutCollection.GetEnumerator.
LayoutRenderer Render environmental information related to logging events.
LayoutRendererAttribute Marks class as a layout renderer and assigns a format string to it.
LayoutRendererCollection A collection of elements of type LayoutRenderer
LayoutRendererCollection.Enumerator Type-specific enumeration class, used by LayoutRendererCollection.GetEnumerator.
LayoutRendererFactory A factory for layout renderers. Creates new layout renderers based on their names.
LogEventInfo Represents the logging event.
Logger Provides logging interface and utility functions.
LogLevel Defines available log levels.
LogManager Creates and manages instances of Logger objects.
MDC 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.
NDC 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.
Target Represents logging target.
TargetAttribute Marks class as a logging target and assigns a name to it.
TargetCollection A collection of elements of type Target
TargetCollection.Enumerator Type-specific enumeration class, used by TargetCollection.GetEnumerator.
TargetFactory A factory of logging targets. Creates new targets based on their names.

Delegates

Delegate Description
LoggerReconfiguredDelegate Represents a method that's invoked each time a Logger configuration changes.
LoggingConfigurationChanged Represents a method that's invoked each time a logging configuration changes.
LoggingConfigurationReloaded Represents a method that's invoked each time a logging configuration gets reloaded to signal either success or failure.

Enumerations

Enumeration Description
FilterResult Filter result.