PostSharp6.6//API Reference/Post­Sharp.​Patterns.​Diagnostics Namespace/Logging­Verbosity­Configuration Class/Logging­Verbosity­Configuration Methods/Logging­Verbosity­Configuration.​Set­Minimal­Level­For­Type Method/Logging­Verbosity­Configuration.​Set­Minimal­Level­For­Type Method (Log­Level, Type, String)

LoggingVerbosityConfiguration.SetMinimalLevelForType Method (LogLevel, Type, String)

Sets the minimal LogLevel for a specific Type and role.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.6.12.0 (6.6.12.0)
Syntax
C#
public void SetMinimalLevelForType(
	LogLevel level,
	Type type,
	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.
type
Type: System.Type
The Type.
role
Type: System.String
The role (typically a value from the LoggingRoles type).
See Also