Open sandboxFocus
  • TOC

Post­Sharp Documentation

Introduction

Deployment and Configuration

Adding Aspects to Code

Logging

Contracts

INotify­Property­Changed

Weak Event

XAML

Parent/Child, Visitor and Disposable

Undo/Redo

Caching

Multithreading

Developing Custom Aspects

Validating Architecture

Testing and Debugging

Miscellaneous

API Reference

Post­Sharp

Post­Sharp.​Aspects

Post­Sharp.​Aspects.​Advices

Post­Sharp.​Aspects.​Configuration

Post­Sharp.​Aspects.​Dependencies

Post­Sharp.​Aspects.​Internals

Post­Sharp.​Aspects.​Serialization

Post­Sharp.​Collections

Post­Sharp.​Constraints

Post­Sharp.​Extensibility

Post­Sharp.​Extensibility.​Build­Time­Logging

Post­Sharp.​Patterns

Post­Sharp.​Patterns.​Caching

Post­Sharp.​Patterns.​Caching.​Backends

Post­Sharp.​Patterns.​Caching.​Backends.​Azure

Post­Sharp.​Patterns.​Caching.​Backends.​Redis

Post­Sharp.​Patterns.​Caching.​Dependencies

Post­Sharp.​Patterns.​Caching.​Formatters

Post­Sharp.​Patterns.​Caching.​Implementation

Post­Sharp.​Patterns.​Caching.​Locking

Post­Sharp.​Patterns.​Caching.​Serializers

Post­Sharp.​Patterns.​Caching.​Value­Adapters

Post­Sharp.​Patterns.​Collections

Post­Sharp.​Patterns.​Collections.​Advices

Post­Sharp.​Patterns.​Contracts

Post­Sharp.​Patterns.​Diagnostics

Close­Activity­Options

Context­Id­Generation­Strategy

Custom­Record­Logging­Options

Default­Logging­Exception­Handler

Formatted­Message­Builder

ILog­Activity

ILog­Aspect

ILogging­Exception­Handler

ILog­Value­Aspect

Log­Activity2

Log­Activity<TActivity­Description>

Log­Activity­Kind

Log­Activity­Options

Log­Attribute6

Log­Attribute­Base5

Log­Exception­Attribute6

Logger

Logger­Factory­Extensions

Logging­Abstract­Source

Logging­Backend

Logging­Backend­Options

Logging­Build­Time­Configuration

Logging­Configuration­Manager

Logging­Context­Local­Configuration

Logging­Context­Local­Configuration­Scope

Logging­Context­Mismatch­Exception2

Logging­Exception2

Logging­Exception­Info

Logging­Namespace­Source

Logging­Options

Logging­Options.​Serializer2

Logging­Profile

Logging­Profile.​Serializer2

Logging­Profile­Collection3

Logging­Profile­Repository

Logging­Property

Logging­Role­Configuration

Logging­Role­Configuration­Repository

Logging­Roles

Logging­Services

Logging­Services.​Formatters2

Logging­Source­Local­State

Logging­Type­Source2

Logging­Verbosity­Configuration

Log­Level

Log­Record­Kind

Log­Record­Kind­Extensions

Log­Source

Log­Value­Attribute5

Not­Logged­Attribute2

Open­Activity­Options

Semantic­Message­Builder

Throwing­Logging­Exception­Handler

Write­Message­Options

Post­Sharp.​Patterns.​Diagnostics.​Adapters.​Asp­Net­Core

Post­Sharp.​Patterns.​Diagnostics.​Adapters.​Asp­Net­Framework

Post­Sharp.​Patterns.​Diagnostics.​Adapters.​Diagnostic­Source

Post­Sharp.​Patterns.​Diagnostics.​Adapters.​Http­Client

Post­Sharp.​Patterns.​Diagnostics.​Audit

Post­Sharp.​Patterns.​Diagnostics.​Backends

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Application­Insights

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Audit

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Common­Logging

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Console

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Event­Source

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Log4Net

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Microsoft

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Multiplexer

Post­Sharp.​Patterns.​Diagnostics.​Backends.​NLog

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Null

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Serilog

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Trace

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Trace­Source

Post­Sharp.​Patterns.​Diagnostics.​Contexts

Post­Sharp.​Patterns.​Diagnostics.​Correlation

Post­Sharp.​Patterns.​Diagnostics.​Custom

Post­Sharp.​Patterns.​Diagnostics.​Custom.​Messages

Post­Sharp.​Patterns.​Diagnostics.​Formatters

Post­Sharp.​Patterns.​Diagnostics.​Record­Builders

Post­Sharp.​Patterns.​Diagnostics.​Threading­Instrumentation

Post­Sharp.​Patterns.​Diagnostics.​Transactions

Post­Sharp.​Patterns.​Diagnostics.​Transactions.​Model

Post­Sharp.​Patterns.​Dynamic­Advising

Post­Sharp.​Patterns.​Formatters

Post­Sharp.​Patterns.​Model

Post­Sharp.​Patterns.​Model.​Controls

Post­Sharp.​Patterns.​Model.​Type­Adapters

Post­Sharp.​Patterns.​Recording

Post­Sharp.​Patterns.​Recording.​Operations

Post­Sharp.​Patterns.​Threading

Post­Sharp.​Patterns.​Threading.​Models

Post­Sharp.​Patterns.​Utilities

Post­Sharp.​Patterns.​Xaml

Post­Sharp.​Reflection

Post­Sharp.​Reflection.​Method­Body

Post­Sharp.​Serialization

  • Article

Class LoggingVerbosityConfiguration

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
LoggingVerbosityConfiguration
Implements
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public class LoggingVerbosityConfiguration : IDisposable
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.

Properties

Name Description
Backend

Gets the parent LoggingBackend.

IsDisposed

Determines whether the current LoggingVerbosityConfiguration has already been disposed.

IsEnabled

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.

IsReadOnly

Determines whether the current instance is read-only. A LoggingVerbosityConfiguration is frozen when in starts being used by a LoggingContextLocalConfiguration.

Methods

Name Description
Dispose()
Dispose(bool)

Disposes the current object.

~LoggingVerbosityConfiguration()

Destructor.

Freeze()

Prevents further modifications in the current object.

FromXml(XElement)

Sets the verbosities in this instance according to data from an XML file.

Reset()

Resets all settings to their default value (i.e. Debug level for everything).

SetMinimalLevel(LogLevel)

Sets the minimal LogLevel for all namespaces, types, and roles except system roles.

SetMinimalLevel(LogLevel, string)

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

SetMinimalLevelForNamespace(LogLevel, string)

Sets the minimal LogLevel for a specific namespace and all roles except system roles.

SetMinimalLevelForNamespace(LogLevel, string, string)

Sets the minimal LogLevel for a specific namespace and role.

SetMinimalLevelForType(LogLevel, Type)

Sets the minimal LogLevel for a specific Type.

SetMinimalLevelForType(LogLevel, Type, string)

Sets the minimal LogLevel for a specific Type and role.

ToString()
Use()

Uses the current LoggingVerbosityConfiguration for the current execution context.

  • Navigation

In this article

Properties

Methods