コード例 #1
0
        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);
            }
        }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
 private void HandleMessage(object sender, DebugConsoleMessageEventArgs args)
 {
     Log(args.Timestamp, args.Message, args.Level, args.Source);
 }
コード例 #4
0
 private void HandleMessage(object sender, DebugConsoleMessageEventArgs args)
 {
     Log(args.Message, args.Color);
 }