PostSharpAPI ReferencePost­Sharp.​Patterns.​DiagnosticsLogging­Verbosity­ConfigurationSet­Minimal­Level­For­Namespace
Open sandboxFocus

LoggingVerbosityConfiguration.SetMinimalLevelForNamespace Method

SetMinimalLevelForNamespace(LogLevel, String, String)

Sets the minimal LogLevel for a specific namespace and role.

Declaration
public void SetMinimalLevelForNamespace(LogLevel level, string ns, [Required] 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.

System.String ns

The namespace.

System.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.

System.String ns

The namespace.

Remarks

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