PostSharpAPI ReferencePost­Sharp.​Extensibility.​Build­Time­LoggingBuild­Time­LoggerActivity
Open sandboxFocus

BuildTimeLogger.Activity Method

Activity(String)

Writes a preformatted message and increases the indentation level. To decrease the indentation level, dispose the BuildTimeLogActivity returned by this method.

Declaration
public BuildTimeLogActivity Activity(string message)
Parameters
Type Name Description
System.String message

Message.

Returns
Type Description
BuildTimeLogActivity

An opaque object to be disposed at the end of the activity to decrease the indentation level.

Activity<T1>(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.

Declaration
public BuildTimeLogActivity Activity<T1>(string format, T1 arg1)
Parameters
Type Name Description
System.String format

Message.

T1 arg1

Value of the 1-th parameter.

Returns
Type Description
BuildTimeLogActivity

An opaque object to be disposed at the end of the activity to decrease the indentation level.

Type Parameters
Name Description
T1

Type of the 1-th parameter.

Activity<T1, T2>(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.

Declaration
public BuildTimeLogActivity Activity<T1, T2>(string format, T1 arg1, T2 arg2)
Parameters
Type Name Description
System.String format

Message.

T1 arg1

Value of the 1-th parameter.

T2 arg2

Value of the 2-th parameter.

Returns
Type Description
BuildTimeLogActivity

An opaque object to be disposed at the end of the activity to decrease the indentation level.

Type Parameters
Name Description
T1

Type of the 1-th parameter.

T2

Type of the 2-th parameter.

Activity<T1, T2, T3>(String, T1, T2, T3)

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

Declaration
public BuildTimeLogActivity Activity<T1, T2, T3>(string format, T1 arg1, T2 arg2, T3 arg3)
Parameters
Type Name Description
System.String format

Message.

T1 arg1

Value of the 1-th parameter.

T2 arg2

Value of the 2-th parameter.

T3 arg3

Value of the 3-th parameter.

Returns
Type Description
BuildTimeLogActivity

An opaque object to be disposed at the end of the activity to decrease the indentation level.

Type Parameters
Name Description
T1

Type of the 1-th parameter.

T2

Type of the 2-th parameter.

T3

Type of the 3-th parameter.

Activity<T1, T2, T3, T4>(String, T1, T2, T3, T4)

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

Declaration
public BuildTimeLogActivity Activity<T1, T2, T3, T4>(string format, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
Parameters
Type Name Description
System.String format

Message.

T1 arg1

Value of the 1-th parameter.

T2 arg2

Value of the 2-th parameter.

T3 arg3

Value of the 3-th parameter.

T4 arg4

Value of the 4-th parameter.

Returns
Type Description
BuildTimeLogActivity

An opaque object to be disposed at the end of the activity to decrease the indentation level.

Type Parameters
Name Description
T1

Type of the 1-th parameter.

T2

Type of the 2-th parameter.

T3

Type of the 3-th parameter.

T4

Type of the 4-th parameter.

Activity<T1, T2, T3, T4, T5>(String, T1, T2, T3, T4, T5)

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

Declaration
public BuildTimeLogActivity Activity<T1, T2, T3, T4, T5>(string format, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
Parameters
Type Name Description
System.String format

Message.

T1 arg1

Value of the 1-th parameter.

T2 arg2

Value of the 2-th parameter.

T3 arg3

Value of the 3-th parameter.

T4 arg4

Value of the 4-th parameter.

T5 arg5

Value of the 5-th parameter.

Returns
Type Description
BuildTimeLogActivity

An opaque object to be disposed at the end of the activity to decrease the indentation level.

Type Parameters
Name Description
T1

Type of the 1-th parameter.

T2

Type of the 2-th parameter.

T3

Type of the 3-th parameter.

T4

Type of the 4-th parameter.

T5

Type of the 5-th parameter.

Activity<T1, T2, T3, T4, T5, T6>(String, T1, T2, T3, T4, T5, T6)

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

Declaration
public BuildTimeLogActivity Activity<T1, T2, T3, T4, T5, T6>(string format, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
Parameters
Type Name Description
System.String format

Message.

T1 arg1

Value of the 1-th parameter.

T2 arg2

Value of the 2-th parameter.

T3 arg3

Value of the 3-th parameter.

T4 arg4

Value of the 4-th parameter.

T5 arg5

Value of the 5-th parameter.

T6 arg6

Value of the 6-th parameter.

Returns
Type Description
BuildTimeLogActivity

An opaque object to be disposed at the end of the activity to decrease the indentation level.

Type Parameters
Name Description
T1

Type of the 1-th parameter.

T2

Type of the 2-th parameter.

T3

Type of the 3-th parameter.

T4

Type of the 4-th parameter.

T5

Type of the 5-th parameter.

T6

Type of the 6-th parameter.

Activity<T1, T2, T3, T4, T5, T6, T7>(String, T1, T2, T3, T4, T5, T6, T7)

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

Declaration
public BuildTimeLogActivity Activity<T1, T2, T3, T4, T5, T6, T7>(string format, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
Parameters
Type Name Description
System.String format

Message.

T1 arg1

Value of the 1-th parameter.

T2 arg2

Value of the 2-th parameter.

T3 arg3

Value of the 3-th parameter.

T4 arg4

Value of the 4-th parameter.

T5 arg5

Value of the 5-th parameter.

T6 arg6

Value of the 6-th parameter.

T7 arg7

Value of the 7-th parameter.

Returns
Type Description
BuildTimeLogActivity

An opaque object to be disposed at the end of the activity to decrease the indentation level.

Type Parameters
Name Description
T1

Type of the 1-th parameter.

T2

Type of the 2-th parameter.

T3

Type of the 3-th parameter.

T4

Type of the 4-th parameter.

T5

Type of the 5-th parameter.

T6

Type of the 6-th parameter.

T7

Type of the 7-th parameter.