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

MicrosoftLoggingBackendOptions Class

Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Diagnostics.LoggingBackendOptions
    PostSharp.Patterns.Diagnostics.Backends.TextLoggingBackendOptions
      PostSharp.Patterns.Diagnostics.Backends.Microsoft.MicrosoftLoggingBackendOptions

Namespace:  PostSharp.Patterns.Diagnostics.Backends.Microsoft
Assembly:  PostSharp.Patterns.Diagnostics.Backends.Microsoft (in PostSharp.Patterns.Diagnostics.Backends.Microsoft.dll) Version: 6.0.35.0 (6.0.35.0)
Syntax
C#
public class MicrosoftLoggingBackendOptions : TextLoggingBackendOptions

The MicrosoftLoggingBackendOptions type exposes the following members.

Constructors
  NameDescription
Public methodMicrosoftLoggingBackendOptions
Initializes a new instance of the MicrosoftLoggingBackendOptions class
Properties
  NameDescription
Public propertyActionMaxLength
Max length of a log record. The default value is 2048.
(Inherited from TextLoggingBackendOptions.)
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.
(Inherited from TextLoggingBackendOptions.)
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 ( | ).
(Inherited from TextLoggingBackendOptions.)
Public propertyGetLoggerName
Gets a function that returns a category name (used as an argument to the CreateLogger(String) method) given a MicrosoftLoggingTypeSource. The default behavior is to return the Role of the type source. If you want to get a logger as a function of the Type instead of the role, you can use the GetTypeDisplayName(Type) method.
Public propertyIncludeExceptionDetails
Determines whether exception details (basically Exception.ToString) should be appended to the log. The default value is false.
(Inherited from TextLoggingBackendOptions.)
Public propertyIncludeNamespace
Determines whether the full namespace of types should be included in the log. The default value is false.
(Inherited from TextLoggingBackendOptions.)
Public propertyIncludeType
Determines whether the name of the type of the logged method should be included in the log. The default value is true.
(Inherited from TextLoggingBackendOptions.)
Public propertyIndentSpaces
Number of spaces for each indentation level. The default value is 2.
(Inherited from TextLoggingBackendOptions.)
Public propertyLogLevelIgnoredForSystemRecords
Determines whether the Level property is ignored by the current back-end for auto-generated (i.e. non-manual) logging records. Some back-ends may not support overriding the level of records.
(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.
(Inherited from TextLoggingBackendOptions.)
See Also