 | LayoutTPrecalculate 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
Syntaxpublic override void Precalculate(
LogEventInfo logEvent
)
Public Overrides Sub Precalculate (
logEvent As LogEventInfo
)
Dim instance As Layout
Dim logEvent As LogEventInfo
instance.Precalculate(logEvent)
abstract Precalculate :
logEvent : LogEventInfo -> unit
override Precalculate :
logEvent : LogEventInfo -> unit
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