PostSharpAPI ReferencePost­Sharp.​Patterns.​DiagnosticsLogging­Backend­Options
Open sandboxFocus

LoggingBackendOptions Class

Options for the LoggingBackend class.

Inheritance
LoggingBackendOptions
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public class LoggingBackendOptions : Object

Constructors

Name Description
LoggingBackendOptions()

Properties

Name Description
ContextIdGenerationStrategy

Determines how the Id property is generated.

ContextMaxLength

Max length of the Description property.

IncludeActivityExecutionTime

Determines whether the execution time should be measured for custom activities. The default value is false. This property does not affect the measurement of execution time of methods, which is only influenced by the IncludeExecutionTime property of the build-time logging profile.

IncludeManualLoggingSourceLineInfo

Determines whether source line information should be included in the log output for manual logging (written using LogSource).

IsIncludeManualLoggingSourceLineInfoSpecified

Determines whether the IncludeManualLoggingSourceLineInfo has been set.

LogLevelIgnoredForSystemRecords

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.

RootSyntheticId

Gets or sets the root of the SyntheticId property. The default is a hex-formatted random 64-bit value.

SyntheticIdFormatter

Determines how the SyntheticId property is generated. The default value is an instance of the DefaultSyntheticIdFormatter class.

SyntheticIdMaxLength

Gets or sets the maximal length of the SyntheticId property.