PostSharp6.3/API Reference/Post­Sharp.​Extensibility.​Build­Time­Logging Namespace/Build­Time­Logger Class

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 Hierarchy
System.Object
  PostSharp.Extensibility.BuildTimeLogging.BuildTimeLogger

Namespace:  PostSharp.Extensibility.BuildTimeLogging
Assembly:  PostSharp (in PostSharp.dll) Version: 6.3.11.0 (6.3.11.0)
Syntax
C#
public sealed class BuildTimeLogger

The BuildTimeLogger type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberIsInitialized
Determines whether the Initialize(IEnumerable<String>) method has already been invoked.
Methods
  NameDescription
Public methodActivity(String)
Writes a preformatted message and increases the indentation level. To decrease the indentation level, dispose the BuildTimeLogActivity returned by this method.
Public methodActivity<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.
Public methodActivity<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.
Public methodActivity<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.
Public methodActivity<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.
Public methodActivity<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.
Public methodActivity<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.
Public methodActivity<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.
Public methodStatic memberGetInstance
Gets a BuildTimeLogger for a given category, or null if logging is not enabled for this category.
Public methodStatic memberInitialize
Initializes the BuildTimeLogger facility.
Public methodWrite(String)
Appends a preformatted string to the next message. The message is sent and flushed when the WriteLine(String) method is invoked.
Public methodWrite(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.
Public methodWrite<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.
Public methodWrite<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.
Public methodWrite<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.
Public methodWrite<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.
Public methodWrite<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.
Public methodWrite<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.
Public methodWrite<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.
Public methodWriteLine(String)
Writes a preformatted log message.
Public methodWriteLine(String, Object[])
Writes a log message and specifies the formatting string and an array of parameters.
Public methodWriteLine<T1>(String, T1)
Writes a message given a formatting string and 1 argument.
Public methodWriteLine<T1, T2>(String, T1, T2)
Writes a message given a formatting string and 2 arguments.
Public methodWriteLine<T1, T2, T3>(String, T1, T2, T3)
Writes a message given a formatting string and 3 arguments.
Public methodWriteLine<T1, T2, T3, T4>(String, T1, T2, T3, T4)
Writes a message given a formatting string and 4 arguments.
Public methodWriteLine<T1, T2, T3, T4, T5>(String, T1, T2, T3, T4, T5)
Writes a message given a formatting string and 5 arguments.
Public methodWriteLine<T1, T2, T3, T4, T5, T6>(String, T1, T2, T3, T4, T5, T6)
Writes a message given a formatting string and 6 arguments.
Public methodWriteLine<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.
See Also