Click or drag to resize
LayoutPrecalculate 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 doens't contain layouts with [ThreadAgnostic].

Namespace: NLog.Layouts
Assembly: NLog (in NLog.dll) Version: 4.3.0
Syntax
public virtual 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