GetLogger(Type)
Declaration
ILogger3 GetLogger(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The type of the source code that will emit the records. |
Returns
Type | Description |
---|---|
ILogger3 | An instance of the ILogger2 interface for |
GetLogger(string)
Gets an instance of the ILogger2 interface for a specific sourceName
. The name will
usually, but not always, be a type name.
Declaration
ILogger3 GetLogger(string sourceName)
Parameters
Type | Name | Description |
---|---|---|
string | sourceName | Name identifying the returned logger. The backend creates a logger based on this name. |
Returns
Type | Description |
---|---|
ILogger3 |