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

NLogLoggingBackendOptions.GetLogger Property

GetLogger

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

Declaration
public Func<NLogLoggingTypeSource, Logger> GetLogger { get; set; }
Property Value
Type Description
System.Func<NLogLoggingTypeSource, NLog.Logger>