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

LoggingVerbosityConfiguration.SetMinimalLevel Method

SetMinimalLevel(LogLevel)

Sets the minimal LogLevel for all namespaces, types, and roles except system roles.

Declaration
public void SetMinimalLevel(LogLevel level)
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.

Remarks

This method overrides the verbosity of all namespaces, types and roles.

SetMinimalLevel(LogLevel, String)

Sets the minimal LogLevel for all namespaces and types for a specific role.

Declaration
public void SetMinimalLevel(LogLevel level, 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 role

The role (typically a value from the LoggingRoles type).

Remarks

This method overrides the verbosity of all namespaces and types.