PostSharp6.6//API Reference/Post­Sharp.​Extensibility.​Build­Time­Logging Namespace/Build­Time­Logger Class/Build­Time­Logger Methods/Build­Time­Logger.​Activity Method/Build­Time­Logger.​Activity(T1, T2) Method (String, T1, T2)

BuildTimeLogger.Activity<T1, T2> Method (String, T1, T2)

Writes a message given a formatting string and 2 arguments, and increases the indentation level. To decrease the indentation level, dispose the BuildTimeLogActivity returned by this method.

Namespace:  PostSharp.Extensibility.BuildTimeLogging
Assembly:  PostSharp (in PostSharp.dll) Version: 6.6.7.0 (6.6.7.0)
Syntax
C#
public BuildTimeLogActivity Activity<T1, T2>(
	string format,
	T1 arg1,
	T2 arg2
)

Parameters

format
Type: System.String
Message.
arg1
Type: T1
Value of the 1-th parameter.
arg2
Type: T2
Value of the 2-th parameter.

Type Parameters

T1
Type of the 1-th parameter.
T2
Type of the 2-th parameter.

Return Value

Type: BuildTimeLogActivity
An opaque object to be disposed at the end of the activity to decrease the indentation level.
See Also