SetMinimalLevelForNamespace(LogLevel, string, string)
Sets the minimum LogLevel for a specific namespace and role.
Declaration
public void SetMinimalLevelForNamespace(LogLevel level, string ns, string role)Parameters
| Type | Name | Description |
|---|---|---|
| LogLevel | level | The minimum LogLevel for which logging should be enabled. If this is None, logging will not be enabled at all. |
| string | ns | The namespace. |
| string | role | The role (typically a value from the LoggingRoles type). |
Remarks
This method overrides the verbosity of all child namespaces and types.
SetMinimalLevelForNamespace(LogLevel, string)
Sets the minimum LogLevel for a specific namespace and all roles except system roles.
Declaration
public void SetMinimalLevelForNamespace(LogLevel level, string ns)Parameters
| Type | Name | Description |
|---|---|---|
| LogLevel | level | The minimum LogLevel for which logging should be enabled. If this is None, logging will not be enabled at all. |
| string | ns | The namespace. |
Remarks
This method overrides the verbosity of all child namespaces and types.