protected override void ExecuteImplementation(LogItem logItem, GRYLog logObject) { logItem.Format(logObject.Configuration, out string formattedMessage, out int _, out int _, out ConsoleColor _, this.Format, logItem.MessageId); this._Pool.Add(formattedMessage); if (this.PreFlushPoolSize <= this._Pool.Count) { this.Flush(); } }
protected override void ExecuteImplementation(LogItem logItem, GRYLog logObject) { TextWriter output; if (logItem.IsErrorEntry()) { output = System.Console.Error; } else { output = System.Console.Out; } logItem.Format(logObject.Configuration, out string formattedMessage, out int cb, out int ce, out ConsoleColor _, this.Format, logItem.MessageId); output.Write(formattedMessage.Substring(0, cb)); this.WriteWithColorToConsole(formattedMessage[cb..ce], output, logItem.LogLevel, logObject);