PostSharp6.7//API Reference/Post­Sharp.​Patterns.​Diagnostics.​Backends.​Serilog Namespace/Serilog­Logging­Backend­Options Class/Serilog­Logging­Backend­Options Properties/Serilog­Logging­Backend­Options.​Get­Logger Property

SerilogLoggingBackendOptions.GetLogger Property

Function mapping a SerilogLoggingTypeSource to a Serilog ILogger. The default behavior is to call typeSource.Backend.Logger.ForContext( typeSource.SourceType ).

Namespace:  PostSharp.Patterns.Diagnostics.Backends.Serilog
Assembly:  PostSharp.Patterns.Diagnostics.Backends.Serilog (in PostSharp.Patterns.Diagnostics.Backends.Serilog.dll) Version: 6.7.10.0 (6.7.10.0)
Syntax
C#
public Func<SerilogLoggingTypeSource, ILogger> GetLogger { get; set; }

Property Value

Type: Func<SerilogLoggingTypeSource, ILogger>
See Also