PostSharp 6.5 / / 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

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: 6.5.19.0 (6.5.19.0)
Syntax
C#
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