Logging back-end for NLog.
Implements
Namespace: PostSharp.Patterns.Diagnostics.Backends.NLog
Assembly: PostSharp.Patterns.Diagnostics.Backends.NLog.dll
Syntax
public class NLogLoggingBackend : TextLoggingBackend, IDisposable
Constructors
Name | Description |
---|---|
NLogLoggingBackend() | Initializes a new NLogLoggingBackend. |
NLogLoggingBackend(LogFactory) | Initializes a new NLogLoggingBackend and specifies the target LogFactory. |
Properties
Name | Description |
---|---|
LogFactory | Gets the LogFactory passed to the constructor of the current NLogLoggingBackend, or |
Options | Gets the back-end options. |
Methods
Name | Description |
---|---|
CreateRecordBuilder() | Creates a new LogRecordBuilder. |
CreateTypeSource(LoggingNamespaceSource, Type) | Creates a LoggingTypeSource for the given role and type. |
CreateTypeSourceBySourceName(LoggingNamespaceSource, string) | Creates a LoggingTypeSource for the given role and logger name. |
GetTextBackendOptions() | Gets the options. |