TextLogRecordBuilder Class |
PostSharp.Patterns.Diagnostics.RecordBuilders.LogRecordBuilder
PostSharp.Patterns.Diagnostics.RecordBuilders.TextLogRecordBuilder
More...
Namespace: PostSharp.Patterns.Diagnostics.RecordBuilders
Assembly: PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 5.0.55.0 (5.0.55.0)
public abstract class TextLogRecordBuilder : LogRecordBuilder
The TextLogRecordBuilder type exposes the following members.
Name | Description | |
---|---|---|
TextLogRecordBuilder |
Initializes a new TextLogRecordBuilder.
|
Name | Description | |
---|---|---|
Backend |
Gets the parent back-end.
| |
BackendOptions |
Shortcut for this.Backend.Options.
| |
Context |
Gets the LoggingContext to which the record belongs.
(Inherited from LogRecordBuilder.) | |
Exception |
Gets the Exception for the current record, or null if no exception
is associated to the current record.
| |
Level |
Gets the LogLevel for the current record.
| |
MemberName |
Gets the name of the method, property or field for the current record.
| |
Options |
Gets the LoggingOptions for the current record.
| |
Profile |
Gets the LoggingProfile for the current record.
| |
RecordKind |
Gets the kind of the current record (e.g. MethodEntry or MethodException).
(Inherited from LogRecordBuilder.) | |
SourceLineInfo |
Gets the SourceLineInfo for the current record.
| |
SourceType |
Gets the source Type of the current record.
| |
StringBuilder |
Gets the current UnsafeStringBuilder where everything is being appended.
| |
ThreadContext |
Gets the ThreadLoggingContext to which the current LogRecordBuilder belongs.
(Inherited from LogRecordBuilder.) | |
TypeSource |
Gets the LoggingTypeSource for the current record.
|
Name | Description | |
---|---|---|
AppendAsyncInfo |
Appends information about the async method to the current StringBuilder.
| |
AppendClosingParenthesisConditional | ||
AppendComma |
Appends a comma to the current StringBuilder, unless this method is invoked for the first
time for the current record.
| |
AppendContextDescription |
Appends the context Description
(or the TypeSource name, if the type of the context is not equal to the source type of the record)
to the current StringBuilder.
| |
AppendDelimiter |
Appends a Delimiter to the current StringBuilder.
| |
AppendDelimiterConditional |
Appends a Delimiter to the current StringBuilder
if the RequireDelimiter() method has been called previously.
| |
AppendEpilogue |
Appends the final part of log message to StringBuilder.
This includes state machine number and execution time where relevant,
but does not include exception details.
| |
AppendExceptionDetails |
Appends exception details to StringBuilder if IncludeExceptionDetails is set.
| |
AppendExecutionTime |
Appends the execution time to the current StringBuilder.
| |
AppendExecutionTimeThreshold | ||
AppendIndentString |
Appends indentation for the given to StringBuilder.
| |
AppendMemberName |
Appends name of the member for the current record
(including the declaring type name, subject to the IncludeType property) to
the current StringBuilder, as well as an opening parenthesis.
| |
AppendOpeningParenthesis |
Appends an opening parenthesis to the current StringBuilder.
| |
AppendProlog |
Appends the indent string, context description, and the record kind to the current StringBuilder.
| |
AppendRecordKind |
Appends the LogRecordKind of the current record to the current StringBuilder.
| |
AppendSemanticParameter(SemanticParameterKind, String, String, String, Int32) |
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, Int32) |
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, Int32) |
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.
| |
AppendSourceLineInfo |
Appends source (file, line) information to the current StringBuilder.
| |
AppendSourceName |
Appends the name of the TypeSource to the current StringBuilder.
| |
AppendSpaces |
Appends a given number of spaces to the current StringBuilder.
| |
AppendSpecialChar |
Appends a special Char (which may require escaping with specific back-ends) to the current StringBuilder.
| |
AppendTrailingPeriod |
Appends a trailing period (.) to the current StringBuilder, respecting the AppendTrailingPeriod property.
| |
BeginCustomRecord |
Initializes the current LogRecordBuilder to emit a custom record.
(Overrides LogRecordBuilder.BeginCustomRecord(LoggingContext, CustomLogRecordInfo).) | |
BeginRecord |
Initializes the current LogRecordBuilder to emit a standard (i.e. non-custom) record for
a given context and method.
(Overrides LogRecordBuilder.BeginRecord(LoggingContext, LogRecordInfo, LogMemberInfo).) | |
Complete |
Emits the record and resets the current LogRecordBuilder.
This method invoked after all SetThis<T>(T), SetParameter<T>(Int32, String, ParameterDirection, String, T) and
similar methods have been called.
(Inherited from LogRecordBuilder.) | |
EmitRecord() |
Emits the record. Invoked by the Complete() method.
(Overrides LogRecordBuilder.EmitRecord().) | |
EmitRecord(Boolean) |
Emits the record and specifies whether exception details should be appended to the text.
| |
EndContextDescription |
Ends building the context Description and starts building the action text.
| |
EndContextDescriptionConditional |
Switches between building the context Description and the action text.
If the EndContextDescriptionConditional() method has been previously invoked, subsequent calls
are ignored.
| |
GetContextDescription |
Gets the context Description
or the TypeSource name, if the type of the context is not equal to the source type of the record.
| |
GetContextDescriptionUnsafe |
Gets an UnsafeString representing the context Description
or the TypeSource name, if the type of the context is not equal to the source type of the record.
| |
GetContextForDescription |
Gets the LoggingContext that should be used when getting or appending the Description.
| |
GetSourceName |
Gets the name of the TypeSource for the current record, respecting the IncludeNamespace property.
| |
HasRecordKindName |
Determines whether the AppendRecordKind() will append anything for the current record.
| |
MustAppendContextDescription |
Determines whether the current Description should be appended
to the current StringBuilder.
| |
RequireComma |
Makes the AppendComma() to append a comma even if it's invoked for the first time.
| |
RequireDelimiter |
Causes the next call to the AppendDelimiterConditional() to append a
Delimiter to the current StringBuilder.
| |
Reset |
Resets all fields and properties of the current LogRecordBuilder to their initial value. Invoked by the
Complete() method.
(Overrides LogRecordBuilder.Reset().) | |
SetException |
Sets the exception for the method or activity.
(Overrides LogRecordBuilder.SetException(Exception).) | |
SetExecutionTime |
Sets the method or activity execution time.
(Overrides LogRecordBuilder.SetExecutionTime(Double, Boolean).) | |
SetMethodGenericParameter<T> |
Not implemented.
(Inherited from LogRecordBuilder.) | |
SetParameter<T>(Int32, String, ParameterDirection, String, T) |
Sets the value of a given parameter and uses the default formatter.
(Inherited from LogRecordBuilder.) | |
SetParameter<T>(Int32, String, ParameterDirection, String, T, IFormatter<T>) |
Sets the value of a given parameter and uses the default formatter.
(Inherited from LogRecordBuilder.) | |
SetParameter<T>(Int32, String, ParameterDirection, String, T, IFormatter<T>) |
Sets the value of a given parameter and uses the default formatter.
(Overrides LogRecordBuilder.SetParameter<T>(Int32, String, ParameterDirection, String, T, IFormatter<T>).) | |
SetReturnValue<T>(Int32, String, String, T) |
Sets a given return value (there can be several return values in C# 7.0) and uses the default formatter.
(Inherited from LogRecordBuilder.) | |
SetReturnValue<T>(Int32, String, String, T, IFormatter<T>) |
Sets a given return value (there can be several return values in C# 7.0) and uses a given formatter.
(Inherited from LogRecordBuilder.) | |
SetReturnValue<T>(Int32, String, String, T, IFormatter<T>) |
Sets a given return value (there can be several return values in C# 7.0) and uses a given formatter.
(Overrides LogRecordBuilder.SetReturnValue<T>(Int32, String, String, T, IFormatter<T>).) | |
SetThis<T>(T) |
Sets the this (instance) value and uses the default formatter. This method is only invoked if the IncludeThisValue property is true.
(Inherited from LogRecordBuilder.) | |
SetThis<T>(T, IFormatter<T>) |
Sets the this (instance) value and uses a given formatter.
(Inherited from LogRecordBuilder.) | |
SetThis<T>(T, IFormatter<T>) |
Sets the this (instance) value and uses a given formatter.
(Overrides LogRecordBuilder.SetThis<T>(T, IFormatter<T>).) | |
SetTypeGenericParameter<T> |
Not implemented.
(Inherited from LogRecordBuilder.) | |
ShouldLogExceptionDetails |
Determines whether exception details should be appended to the text of the current StringBuilder.
| |
ToString | Returns a string that represents the current object. (Overrides Object.ToString().) | |
Write |
Writes the final message to the back-end.
| |
WriteCustomParameter<T>(Int32, ArraySegment<Char>, T) |
Writes a custom parameter and uses the default formatter.
(Inherited from LogRecordBuilder.) | |
WriteCustomParameter<T>(Int32, ArraySegment<Char>, T, IFormatter<T>) |
Writes a custom parameter and uses a given formatter.
(Inherited from LogRecordBuilder.) | |
WriteCustomParameter<T>(Int32, ArraySegment<Char>, T, IFormatter<T>) |
Writes a custom parameter and uses a given formatter.
(Overrides LogRecordBuilder.WriteCustomParameter<T>(Int32, ArraySegment<Char>, T, IFormatter<T>).) | |
WriteCustomString |
Write a chunk of custom string.
(Overrides LogRecordBuilder.WriteCustomString(ArraySegment<Char>).) |
Name | Description | |
---|---|---|
QueryInterface<T> |
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.) |
PostSharp.Patterns.Diagnostics.RecordBuilders.LogRecordBuilder
PostSharp.Patterns.Diagnostics.RecordBuilders.TextLogRecordBuilder
PostSharp.Patterns.Diagnostics.Backends.ApplicationInsights.ApplicationInsightsLogRecordBuilder
PostSharp.Patterns.Diagnostics.Backends.Audit.AuditRecordBuilder
PostSharp.Patterns.Diagnostics.Backends.CommonLogging.CommonLoggingRecordBuilder
PostSharp.Patterns.Diagnostics.Backends.Console.ConsoleLogRecordBuilder
PostSharp.Patterns.Diagnostics.Backends.EnterpriseLibrary.EnterpriseLibraryLogRecordBuilder
PostSharp.Patterns.Diagnostics.Backends.EventSource.EventSourceLogRecordBuilder
PostSharp.Patterns.Diagnostics.Backends.Log4Net.Log4NetLogRecordBuilder
PostSharp.Patterns.Diagnostics.Backends.Loupe.LoupeLogRecordBuilder
PostSharp.Patterns.Diagnostics.Backends.Microsoft.MicrosoftLogRecordBuilder
PostSharp.Patterns.Diagnostics.Backends.NLog.NLogLogRecordBuilder
PostSharp.Patterns.Diagnostics.Backends.Serilog.SerilogLogRecordBuilder
PostSharp.Patterns.Diagnostics.Backends.Trace.TraceLogRecordBuilder
PostSharp.Patterns.Diagnostics.Backends.TraceSource.TraceSourceLogRecordBuilder