PostSharp5.0/API Reference/Post­Sharp.​Patterns.​Diagnostics.​Backends Namespace/Text­Logging­Backend­Options Class

TextLoggingBackendOptions Class

Options for the TextLoggingBackendOptions class.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Diagnostics.LoggingBackendOptions
    PostSharp.Patterns.Diagnostics.Backends.TextLoggingBackendOptions
      More...

Namespace:  PostSharp.Patterns.Diagnostics.Backends
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public class TextLoggingBackendOptions : LoggingBackendOptions

The TextLoggingBackendOptions type exposes the following members.

Constructors
  NameDescription
Public methodTextLoggingBackendOptions
Initializes a new instance of the TextLoggingBackendOptions class
Properties
  NameDescription
Public propertyActionMaxLength
Max length of a log record. The default value is 2048.
Public propertyAppendTrailingPeriod
Determines whether log messages should be ended with a trailing period. The default value is true because we really like trailing periods at PostSharp, but other opinions are valid.
Public propertyContextMaxLength
Max length of the Description property.
(Inherited from LoggingBackendOptions.)
Public propertyDelimiter
String used to separate different parts of the logging record. The default value is a pipe surrounded by spaces ( | ).
Public propertyIncludeExceptionDetails
Determines whether exception details (basically Exception.ToString) should be appended to the log. The default value is false.
Public propertyIncludeNamespace
Determines whether the full namespace of types should be included in the log. The default value is false.
Public propertyIncludeType
Determines whether the name of the type of the logged method should be included in the log. The default value is true.
Public propertyIndentSpaces
Number of spaces for each indentation level. The default value is 2.
Public propertyLogLevelIgnoredForSystemRecords (Inherited from LoggingBackendOptions.)
Public propertyShouldLogExceptionPredicate
Gets or sets a predicate that determines whether an exception should be logged. This predicate is evaluated only when the method entry is not logged. When the method entry is logged, exceptions are always logged.
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also
Inheritance Hierarchy