PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​FormattersSynthetic­Id­FormatterWrite­Record­Id
Open sandboxFocus

SyntheticIdFormatter.WriteRecordId Method

WriteRecordId(UnsafeStringBuilder, LoggingContext)

Generates the value of the SyntheticId property of a LogRecordBuilder.

Declaration
public abstract void WriteRecordId(UnsafeStringBuilder stringBuilder, LoggingContext context)
Parameters
Type Name Description
UnsafeStringBuilder stringBuilder

The target UnsafeStringBuilder.

LoggingContext context

The context for which the synthetic id needs to be generated.