Open sandboxFocus

Method GetLogger

GetLogger(Type)

Gets an instance of the ILogger2 for a specific Type.

Declaration
[Obsolete("Use ILoggerFactory3.GetLogger")]
ILogger2 GetLogger(Type type)
Parameters
Type Name Description
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.