Open sandboxFocus

Class LoggingBackendOptions

Represents the options of the LoggingBackend class.

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

These options are run-time options. They are exposed by the Options property, and each backend can expose a derived class with more options, for instance TextLoggingBackendOptions. Unlike the build-time options of a LoggingProfile, they are not organized into profiles: they apply to all records emitted through the backend.

Constructors

Name Description
LoggingBackendOptions()

Properties

Name Description
ContextIdGenerationStrategy

Gets or sets the strategy that determines how the Id property is generated.

ContextMaxLength

Gets or sets the maximum length of the Description property.

IncludeActivityExecutionTime

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

IncludeManualLoggingSourceLineInfo

Gets or sets a value indicating whether source line information is included in the log output for manual logging (written using LogSource).

IsIncludeManualLoggingSourceLineInfoSpecified

Gets a value indicating whether the IncludeManualLoggingSourceLineInfo property has been set.

LogLevelIgnoredForSystemRecords

Gets a value indicating whether the Level property is ignored by the current backend for auto-generated (that is, non-manual) logging records. Some backends 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

Gets or sets the formatter that determines how the SyntheticId property is generated. The default value is an instance of the DefaultSyntheticIdFormatter class.

SyntheticIdMaxLength

Gets or sets the maximum length of the SyntheticId property.

See Also