PostSharp 6.7 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Contexts Namespace / Thread­Logging­Context Class / Thread­Logging­Context Constructor

ThreadLoggingContext Constructor

Initializes a new ThreadLoggingContext.

Namespace:  PostSharp.Patterns.Diagnostics.Contexts
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.7.12.0 (6.7.12.0)
Syntax
C#
public ThreadLoggingContext(
	LoggingBackend backend,
	LogRecordBuilder recordBuilder
)

Parameters

backend
Type: PostSharp.Patterns.Diagnostics.LoggingBackend
The parent LoggingBackend.
recordBuilder
Type: PostSharp.Patterns.Diagnostics.RecordBuilders.LogRecordBuilder
The thread-local LogRecordBuilder.
See Also