Method GetLogger
GetLogger(String, Type)
Declaration
public static Logger GetLogger(string role, Type type)
Parameters
Type | Name | Description |
---|---|---|
String | role | The role name (see LoggingRoles for a list of standard logging roles). |
Type | type | The type that will emit the records. |
Returns
Type | Description |
---|---|
Logger | A Logger for |
GetLogger(String)
Gets a Logger for a given role and for the calling type.
Declaration
public static Logger GetLogger(string role = "Custom")
Parameters
Type | Name | Description |
---|---|---|
String | role | The role name (see LoggingRoles for a list of standard logging roles). The default value is |
Returns
Type | Description |
---|---|
Logger | A Logger for |
GetLogger(String, ref CallerInfo)
Declaration
public static Logger GetLogger(string role, ref CallerInfo callerInfo)
Parameters
Type | Name | Description |
---|---|---|
String | role | |
CallerInfo | callerInfo |
Returns
Type | Description |
---|---|
Logger |