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

LoggingVerbosityConfiguration.SetMinimalLevelForType Method

SetMinimalLevelForType(LogLevel, Type, String)

Sets the minimal LogLevel for a specific System.Type and role.

Declaration
public void SetMinimalLevelForType(LogLevel level, [Required] Type type, [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.Type type

The System.Type.

System.String role

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

SetMinimalLevelForType(LogLevel, Type)

Sets the minimal LogLevel for a specific System.Type.

Declaration
public void SetMinimalLevelForType(LogLevel level, Type type)
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.Type type

The System.Type.