PostSharp 6.7 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Log­Activity Class / Log­Activity Constructor

LogActivity Constructor

Initializes a new LogActivity.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.7.12.0 (6.7.12.0)
Syntax
C#
public LogActivity(
	ILogger logger,
	ILoggingContext context
)

Parameters

logger
Type: PostSharp.Patterns.Diagnostics.Custom.ILogger
The underlying ILogger.
context
Type: PostSharp.Patterns.Diagnostics.Contexts.ILoggingContext
The ILoggingContext implementing the new LogActivity.
See Also