Open sandboxFocus

Method SetMinimalLevelForNamespace

SetMinimalLevelForNamespace(LogLevel, string, string)

Sets the minimal LogLevel for a specific namespace and role.

Declaration
public void SetMinimalLevelForNamespace(LogLevel level, string ns, string role)
Parameters
Type Name Description
LogLevel level

The minimal LogLevel for which logging should be enabled. If this is None, logging won't 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 children namespaces and types.

SetMinimalLevelForNamespace(LogLevel, string)

Sets the minimal 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 minimal LogLevel for which logging should be enabled. If this is None, logging won't be enabled at all.

string ns

The namespace.

Remarks

This method overrides the verbosity of all children namespaces and types.