PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace / ILogger2 Interface / ILogger2 Methods / ILogger2.​Get­Context­Local­Logger Method

ILogger2.GetContextLocalLogger Method

Gets the logger for the current context.

Namespace:  PostSharp.Patterns.Diagnostics.Custom
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
IContextLocalLogger GetContextLocalLogger()

Return Value

Type: IContextLocalLogger
See Also