private void _console_LineWrittenEvent(object sender, LineWrittenEventArgs e) { switch (e.Level.ToString()) { case "Default": _logger.Debug(e.Value); break; case "Information": _logger.Info(e.Value); break; case "Warning": _logger.Warn(e.Value); break; case "Error": _logger.Error(e.Value); break; default: _logger.Error(string.Format("Unknown output level: {0}", e.Level)); _logger.Info(e.Value); break; } Trace.WriteLine(e.Value, e.Level.ToString()); }
internal override void OnLineWrittenEvent(LineWrittenEventArgs e) { base.OnLineWrittenEvent(e); }
internal virtual void OnLineWrittenEvent(LineWrittenEventArgs e) { LineWrittenEvent?.Invoke(this, e); }
private void CommandLogWritten(object sender, LineWrittenEventArgs args) { commandLog.Add(args.Line); }
internal override void OnLineWrittenEvent(LineWrittenEventArgs e) { }
private void _console_LineWrittenEvent(object sender, LineWrittenEventArgs e) { Trace.WriteLine(e.Value, e.Level.ToString()); }
private void _systemConsoleBase_LineWrittenEvent(object sender, LineWrittenEventArgs e) { SendToClient(e.Value); }