|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].
NLog (in NLog.dll) Version: 4.3.0
public virtual void Precalculate(
Public Overridable Sub Precalculate (
logEvent As LogEventInfo
- Type: NLogLogEventInfo
The log event.
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.