Open sandboxFocus

Method SetMinimalLevelForType

SetMinimalLevelForType(LogLevel, Type, string)

Sets the minimum LogLevel for a specific Type and role.

Declaration
public void SetMinimalLevelForType(LogLevel level, Type type, string role)
Parameters
Type Name Description
LogLevel level

The minimum LogLevel for which logging should be enabled. If this is None, logging will not be enabled at all.

Type type

The Type.

string role

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

SetMinimalLevelForType(LogLevel, Type)

Sets the minimum LogLevel for a specific Type.

Declaration
public void SetMinimalLevelForType(LogLevel level, Type type)
Parameters
Type Name Description
LogLevel level

The minimum LogLevel for which logging should be enabled. If this is None, logging will not be enabled at all.

Type type

The Type.