PostSharp6.5//API Reference/Post­Sharp.​Patterns.​Diagnostics.​Formatters Namespace/Synthetic­Id­Formatter Class/Synthetic­Id­Formatter Methods/Synthetic­Id­Formatter.​Write­Record­Id Method

SyntheticIdFormatter.WriteRecordId Method

Generates the value of the SyntheticId property of a LogRecordBuilder.

Namespace:  PostSharp.Patterns.Diagnostics.Formatters
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.5.15.0 (6.5.15.0)
Syntax
C#
public abstract void WriteRecordId(
	UnsafeStringBuilder stringBuilder,
	LoggingContext context
)

Parameters

stringBuilder
Type: PostSharp.Patterns.Formatters.UnsafeStringBuilder
The target UnsafeStringBuilder.
context
Type: PostSharp.Patterns.Diagnostics.Contexts.LoggingContext
The context for which the synthetic id needs to be generated.
See Also