PostSharp.ILAPI ReferencePost­Sharp.​Extensibility.​Build­Time­LoggingBuild­Time­Logger
Open sandboxFocus

BuildTimeLogger Class

Allows to emit build-time log records. Use the GetInstance(String) method and then invoke WriteLine(String) or Activity(String) using the ?. operator.

Inheritance
BuildTimeLogger
Namespace: PostSharp.Extensibility.BuildTimeLogging
Assembly: PostSharp.dll
Syntax
public sealed class BuildTimeLogger : Object

Properties

Name Description
IsInitialized

Determines whether the Initialize(IEnumerable<String>) method has already been invoked.

Methods

Name Description
Activity(String)

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

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.

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.

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.

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.

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.

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.

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.

GetInstance(String)

Gets a BuildTimeLogger for a given category, or null if logging is not enabled for this category.

Initialize(IEnumerable<String>)

Initializes the BuildTimeLogger facility.

Write(String)

Appends a preformatted string to the next message. The message is sent and flushed when the WriteLine(String) method is invoked.

Write(String, Object[])

Appends a string to the next message and formats it using a formatting string and an array of parameters. The message is sent and flushed when the WriteLine(String) method is invoked.

Write<T1>(String, T1)

Appends a string to the next message and formats it using a formatting string and 1 argument. The message is sent and flushed when the WriteLine(String) method is invoked.

Write<T1, T2>(String, T1, T2)

Appends a string to the next message and formats it using a formatting string and 2 arguments. The message is sent and flushed when the WriteLine(String) method is invoked.

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

Appends a string to the next message and formats it using a formatting string and 3 arguments. The message is sent and flushed when the WriteLine(String) method is invoked.

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

Appends a string to the next message and formats it using a formatting string and 4 arguments. The message is sent and flushed when the WriteLine(String) method is invoked.

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

Appends a string to the next message and formats it using a formatting string and 5 arguments. The message is sent and flushed when the WriteLine(String) method is invoked.

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

Appends a string to the next message and formats it using a formatting string and 6 arguments. The message is sent and flushed when the WriteLine(String) method is invoked.

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

Appends a string to the next message and formats it using a formatting string and 7 arguments. The message is sent and flushed when the WriteLine(String) method is invoked.

WriteLine(String)

Writes a preformatted log message.

WriteLine(String, Object[])

Writes a log message and specifies the formatting string and an array of parameters.

WriteLine<T1>(String, T1)

Writes a message given a formatting string and 1 argument.

WriteLine<T1, T2>(String, T1, T2)

Writes a message given a formatting string and 2 arguments.

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

Writes a message given a formatting string and 3 arguments.

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

Writes a message given a formatting string and 4 arguments.

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

Writes a message given a formatting string and 5 arguments.

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

Writes a message given a formatting string and 6 arguments.

WriteLine<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.