Click or drag to resize

LayoutTPrecalculate Method

Precalculates the layout for the specified log event and stores the result in per-log event cache. Only if the layout doesn't have [ThreadAgnostic] and doesn't contain layouts with [ThreadAgnostic].

Namespace:  NLog.Layouts
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
public override void Precalculate(
	LogEventInfo logEvent
)

Parameters

logEvent
Type: NLogLogEventInfo
The log event.
Remarks
Calling this method enables you to store the log event in a buffer and/or potentially evaluate it in another thread even though the layout may contain thread-dependent renderer.
See Also