Click or drag to resize

LayoutPrecalculate Method

Precalculates the layout for the specified log event and stores the result in per-log event cache. Skips context capture when Layout have [ThreadAgnostic], and only contains layouts with [ThreadAgnostic].

Namespace:  NLog.Layouts
Assembly:  NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntax
public virtual void Precalculate(
	LogEventInfo logEvent
)

Parameters

logEvent
Type: NLogLogEventInfo
The log event.
Remarks
Override this method to make it conditional whether to capture Layout output-value for logEvent
See Also