Open sandboxFocus

Class NLogLoggingBackend

Logging back-end for NLog.

Inheritance
NLogLoggingBackend
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 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.