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

ILoggerFactory.GetLogger Method

GetLogger(String, Type)

Gets an instance of the ILogger interface for a given role and System.Type.

Declaration
ILogger GetLogger(string role, Type type)
Parameters
Type Name Description
System.String role

The role for which the logger is requested.

System.Type type

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

Returns
Type Description
ILogger

An instance of the ILogger interface for role and type.