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.LayoutsNLog (in NLog.dll) Version: 4.7.0+4d138800820311d0b60b6437f1dd2ed1d571d47d
Syntaxpublic virtual void Precalculate( LogEventInfo logEvent )
Public Overridable 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 -> unitParameters
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 AlsoRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4