PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Backends.​NLog Namespace / NLog­Logging­Backend­Options Class / NLog­Logging­Backend­Options Properties / NLog­Logging­Backend­Options.​Get­Logger Property

NLogLoggingBackendOptions.GetLogger Property

Function mapping an NLogLoggingTypeSource to an NLog Logger. The default behavior is to call typeSource.Backend.LogFactory?.GetLogger( typeSource.Role ) ?? LogManager.GetLogger( typeSource.Role ).

Namespace:  PostSharp.Patterns.Diagnostics.Backends.NLog
Assembly:  PostSharp.Patterns.Diagnostics.Backends.NLog (in PostSharp.Patterns.Diagnostics.Backends.NLog.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public Func<NLogLoggingTypeSource, Logger> GetLogger { get; set; }

Property Value

Type: Func<NLogLoggingTypeSource, Logger>
See Also