Namespace: PostSharp.Patterns.Diagnostics.Backends.ApplicationInsights
Assembly: PostSharp.Patterns.Diagnostics.Backends.ApplicationInsights.dll
Syntax
public class ApplicationInsightsLogRecordBuilder : TextLogRecordBuilder, ICustomLogRecordBuilder, IDisposableConstructors
| Name | Description |
|---|---|
| ApplicationInsightsLogRecordBuilder(ApplicationInsightsLoggingBackend) | Initializes a new instance of the ApplicationInsightsLogRecordBuilder class. |
Methods
| Name | Description |
|---|---|
| AppendSemanticParameter(SemanticParameterKind, string, object, IFormatter, string, int) | Appends a parameter to the current StringBuilder. The name is given as a string, and a specific formatter formats the value. Backends that support semantic logging may store the parameter value semantically instead of appending it to the StringBuilder. This method overload is weakly typed. |
| AppendSemanticParameter(SemanticParameterKind, string, string, string, int) | Appends a parameter of string type to the current StringBuilder. Backends that support semantic logging may store the parameter value semantically instead of appending it to the StringBuilder. |
| AppendSemanticParameter<T>(SemanticParameterKind, ArraySegment<char>, T, IFormatter<T>, string, int) | Appends a parameter to the current StringBuilder. The name is given as an ArraySegment<T>, and a specific formatter formats the value. Backends that support semantic logging may store the parameter value semantically instead of appending it to the StringBuilder. |
| AppendSemanticParameter<T>(SemanticParameterKind, string, T, IFormatter<T>, string, int) | Appends a parameter to the current StringBuilder. The name is given as a string, and a specific formatter formats the value. Backends that support semantic logging may store the parameter value semantically instead of appending it to the StringBuilder. This method overload is strongly typed. |
| BeginCustomRecord(LoggingContext, ref CustomLogRecordInfo) | Initializes the current LogRecordBuilder to emit a custom record. |
| BeginRecord(LoggingContext, ref LogRecordInfo, ref LogMemberInfo) | Initializes the current LogRecordBuilder to emit a standard (non-custom) record for a given context and method. |
| Dispose() | Finishes the logging of the current record. Calling this method does not actually make the current LogRecordBuilder unusable, but it makes it usable for the next record in the same thread. |
| Reset() | Resets all fields and properties of the current LogRecordBuilder to their initial value. Invoked by the Complete() method. |
| Write(UnsafeString) | Writes the final message to the backend. |