PostSharp 6.10 / / Post­Sharp Documentation / 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) Method (String, T1)

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

Writes a message given a formatting string and 1 argument, 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.10.10.0 (6.10.10.0)
Syntax
C#
public BuildTimeLogActivity Activity<T1>(
	string format,
	T1 arg1
)

Parameters

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

Type Parameters

T1
Type of the 1-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