The LogRecordBuilder for SerilogLoggingBackend.
Namespace: PostSharp.Patterns.Diagnostics.Backends.Serilog
Assembly: PostSharp.Patterns.Diagnostics.Backends.Serilog.dll
Syntax
public class SerilogLogRecordBuilder : TextLogRecordBuilder, ICustomLogRecordBuilder, IDisposable
Constructors
Name | Description |
---|---|
SerilogLogRecordBuilder(SerilogLoggingBackend) | Creates an instance of SerilogLogRecordBuilder. |
Properties
Name | Description |
---|---|
MessageTemplateTokens | Gets the list of Serilog.Parsing.MessageTemplateToken for the current log record. |
Properties | Gets the list of properties for the current log record. |
Methods
Name | Description |
---|---|
AppendContextDescription(LoggingContext) | Appends the context Description to the current StringBuilder. |
AppendIndentString(int) | Appends indentation for the given to StringBuilder. |
AppendSemanticParameter(SemanticParameterKind, string, object, IFormatter, string, int) | Appends a parameter to the current StringBuilder, where the name is given as a string, and uses a specific formatter. Back-ends 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. Back-ends 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, where the name is given as a ArraySegment<T>, and uses a specific formatter. Back-ends 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, where the name is given as a string, and uses a specific formatter. Back-ends that support semantic logging may store the parameter value semantically instead of appending it to the StringBuilder. This method overload is strongly typed. |
BeginRecord(LoggingContext, ref LogRecordInfo, ref LogMemberInfo) | Initializes the current LogRecordBuilder to emit a standard (i.e. 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 a next record in the same thread. |
EmitRecord() | Emits the record. Invoked by the Complete() method. |
EndContextDescription() | Ends building the context Description and starts building the action text. |
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 back-end. |