PostSharp 6.8 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Logging­Backend Class / Logging­Backend Methods / Logging­Backend.​With­Context­Local­Configuration Method

LoggingBackend.WithContextLocalConfiguration Method

Changes the LoggingContextLocalConfiguration for the current execution context.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.8.6.0 (6.8.6.0)
Syntax
C#
protected LoggingContextLocalConfigurationScope WithContextLocalConfiguration(
	LoggingContextLocalConfiguration configuration
)

Parameters

configuration
Type: PostSharp.Patterns.Diagnostics.LoggingContextLocalConfiguration
The new LoggingContextLocalConfiguration for the current execution context.

Return Value

Type: LoggingContextLocalConfigurationScope
An opaque and disposable cookie that allows to change the CurrentContextLocalConfiguration back to its original value
See Also