NLog.Targets.ColoredConsoleTarget.Write C# (CSharp) Method

Write() protected method

Writes the specified log event to the console highlighting entries and words based on a set of defined rules.
protected Write ( LogEventInfo logEvent ) : void
logEvent LogEventInfo Log event.
return void
        protected override void Write(LogEventInfo logEvent)
        {
            if (pauseLogging)
            {
                //check early for performance
                return;
            }
            this.WriteToOutput(logEvent, this.Layout.Render(logEvent));
        }