PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Logging­Verbosity­Configuration Class / Logging­Verbosity­Configuration Methods / Logging­Verbosity­Configuration.​Set­Minimal­Level Method / Logging­Verbosity­Configuration.​Set­Minimal­Level Method (Log­Level, String)

LoggingVerbosityConfiguration.SetMinimalLevel Method (LogLevel, String)

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

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.5.19.0 (6.5.19.0)
Syntax
C#
public void SetMinimalLevel(
	LogLevel level,
	string role
)

Parameters

level
Type: PostSharp.Patterns.Diagnostics.LogLevel
The minimal LogLevel for which logging should be enabled. If this is None, logging won't be enabled at all.
role
Type: System.String
The role (typically a value from the LoggingRoles type).
Remarks

This method overrides the verbosity of all namespaces and types.

See Also