PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Logging­Verbosity­Configuration Class

LoggingVerbosityConfiguration Class

Manages the configuration of the minimal LogLevel for individual types and namespaces. This class is exposed by the Verbosity property. To create a new instance of this class, call CreateVerbosityConfiguration().
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Diagnostics.LoggingVerbosityConfiguration

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.9.1.0 (6.9.1.0)
Syntax
C#
public class LoggingVerbosityConfiguration : IDisposable

The LoggingVerbosityConfiguration type exposes the following members.

Properties
  NameDescription
Public propertyBackend
Gets the parent LoggingBackend.
Public propertyIsDisposed
Determines whether the current LoggingVerbosityConfiguration has already been disposed.
Public propertyIsEnabled
Determines whether the current LoggingBackend is currently enabled. This property has precedence over, and does not affect, the minimal log levels set through the SetLevel(LogLevel) method.
Public propertyIsReadOnly
Determines whether the current instance is read-only. A LoggingVerbosityConfiguration is frozen when in starts being used by a LoggingContextLocalConfiguration.
Methods
  NameDescription
Public methodDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Disposes the current object.
Protected methodFinalize
Destructor.
(Overrides Object.Finalize().)
Public methodFreeze
Prevents further modifications in the current object.
Public methodFromXml
Sets the verbosities in this instance according to data from an XML file.
Public methodReset
Resets all settings to their default value (i.e. Debug level for everything).
Public methodSetMinimalLevel(LogLevel)
Sets the minimal LogLevel for all namespaces, types, and roles except system roles.
Public methodSetMinimalLevel(LogLevel, String)
Sets the minimal LogLevel for all namespaces and types for a specific role.
Public methodSetMinimalLevelForNamespace(LogLevel, String)
Sets the minimal LogLevel for a specific namespace and all roles except system roles.
Public methodSetMinimalLevelForNamespace(LogLevel, String, String)
Sets the minimal LogLevel for a specific namespace and role.
Public methodSetMinimalLevelForType(LogLevel, Type)
Sets the minimal LogLevel for a specific Type.
Public methodSetMinimalLevelForType(LogLevel, Type, String)
Sets the minimal LogLevel for a specific Type and role.
Public methodToString
Returns a string that represents the current object.
(Overrides Object.ToString().)
Public methodUse
Uses the current LoggingVerbosityConfiguration for the current execution context.
Remarks
This class is not meant to be derived because it is heavyweight and therefore the number of instances should be minimal. To store context-sensitive information, another mechanism should be used.
See Also