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

ILoggerFactory2.GetLogger Method

Note: This API is now obsolete.

Gets an instance of the ILogger2 for a specific Type.

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#
[ObsoleteAttribute("Use ILoggerFactory3.GetLogger")]
ILogger2 GetLogger(
	Type type
)

Parameters

type
Type: System.Type
The type of the source code that will emit the records.

Return Value

Type: ILogger2
An instance of the ILogger2 interface for type.
See Also