PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Backends.​NLogNLog­Logging­Backend
Open sandboxFocus

NLogLoggingBackend Class

Logging back-end for NLog.

Inheritance
NLogLoggingBackend
Implements
IDisposable
Namespace: PostSharp.Patterns.Diagnostics.Backends.NLog
Assembly: PostSharp.Patterns.Diagnostics.Backends.NLog.dll
Syntax
public class NLogLoggingBackend : TextLoggingBackend

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 null if no logger was passed during the instantiation of the current NLogLoggingBackend.

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.

Extension Methods

LoggingConfigurationManager.ConfigureFromXmlWithAutoReloadAsync(LoggingBackend, Uri, TimeSpan, CancellationToken)
LoggingConfigurationManager.StopAutoReloadConfigurationAsync(LoggingBackend)
LoggingConfigurationManager.ConfigureFromXmlAsync(LoggingBackend, Uri, CancellationToken)
LoggingConfigurationManager.ConfigureFromXml(LoggingBackend, XDocument, Boolean)
LoggingConfigurationManager.ConfigureFromXml(LoggingBackend, XElement, Boolean)
LoggingConfigurationManager.ResetConfiguration(LoggingBackend)