An implementation of SyntheticIdFormatter that is compatible with the Hierarchical Request-Id specification. Ids generated by this class are hierarchical and can be alphabetically sorted while respecting the natural time order.
Implements
Namespace: PostSharp.Patterns.Diagnostics.Formatters
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public class DefaultSyntheticIdFormatter : SyntheticIdFormatter, IDisposable
Constructors
Name | Description |
---|---|
DefaultSyntheticIdFormatter() |
Methods
Name | Description |
---|---|
Dispose() | |
Dispose(bool) | Disposes the current object. |
GenerateChildContextId(LoggingContext) | Generates a new synthetic id for a child of a given context. This context id can then be assigned to SyntheticRootId. |
WriteContextId(UnsafeStringBuilder, LoggingContext) | Generates the value of the SyntheticId property of a LoggingContext. |
WriteRecordId(UnsafeStringBuilder, LoggingContext) | Generates the value of the SyntheticId property of a LogRecordBuilder. |