Open sandboxFocus

Method GetLogger

GetLogger(string, Type)

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

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

The role for which the logger is requested.

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.