PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​CustomILogger­Factory2Get­Logger
Open sandboxFocus

ILoggerFactory2.GetLogger Method

GetLogger(Type)

Gets an instance of the ILogger2 for a specific System.Type.

Declaration
ILogger2 GetLogger(Type type)
Parameters
Type Name Description
System.Type type

The type of the source code that will emit the records.

Returns
Type Description
ILogger2

An instance of the ILogger2 interface for type.