NLog.Targets.Target.PrecalculateVolatileLayouts C# (CSharp) Method

PrecalculateVolatileLayouts() public method

Calls the Layout.Precalculate on each volatile layout used by this target.
public PrecalculateVolatileLayouts ( LogEventInfo logEvent ) : void
logEvent LogEventInfo /// The log event. ///
return void
        public void PrecalculateVolatileLayouts(LogEventInfo logEvent)
        {
            lock (this.SyncRoot)
            {
                if (this.IsInitialized)
                {
                    foreach (Layout l in this.allLayouts)
                    {
                        l.Precalculate(logEvent);
                    }
                }
            }
        }