Method GetSource
GetSource(String, Type)
Returns a LoggingTypeSource for the given role and type.
Declaration
public static LoggingTypeSource GetSource(string role, Type type)
Parameters
Type | Name | Description |
---|---|---|
String | role | The role. Typically one of the constants of the LoggingRoles type, or a custom role. |
Type | type | The type. |
Returns
Type | Description |
---|---|
LoggingTypeSource | The LoggingTypeSource for |
GetSource(String, String)
Returns a LoggingNamespaceSource for the given role and, optionally, namespace.
Declaration
public static LoggingNamespaceSource GetSource(string role, string ns = null)
Parameters
Type | Name | Description |
---|---|---|
String | role | The role. Typically one of the constants of the LoggingRoles type, or a custom role. |
String | ns | The namespace for which the LoggingNamespaceSource is requested, or |
Returns
Type | Description |
---|---|
LoggingNamespaceSource | The LoggingNamespaceSource for |