public void Log(DateTime timestamp, string message, TraceEventType level, string source) { if (OnMessage != null) { DebugConsoleMessageEventArgs args = new DebugConsoleMessageEventArgs(timestamp, message, level, source); OnMessage(this, args); } }
public void Log(string message, ConsoleColor color, TimeSpan?span, int?bytes, Guid?context) { if (OnMessage != null) { DebugConsoleMessageEventArgs args = new DebugConsoleMessageEventArgs(message, color); OnMessage(this, args); } }
private void HandleMessage(object sender, DebugConsoleMessageEventArgs args) { Log(args.Timestamp, args.Message, args.Level, args.Source); }
private void HandleMessage(object sender, DebugConsoleMessageEventArgs args) { Log(args.Message, args.Color); }