PostSharp 6.9 / / 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.DisplayFullName ) ?? LogManager.GetLogger( typeSource.DisplayFullName ).

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

Property Value

Type: Func<NLogLoggingTypeSource, Logger>
See Also