Пример #1
0
            public override void TraceEvent(TraceEventCache eventCache, string source, TraceEventType eventType, int id, string format, params object[] args)
            {
                var color = GetColor(eventType, id);

                ColorConsole.WriteLine(color, eventCache.DateTime.ToString("[HH:mm:ss.fff] ") + format, args);
            }
Пример #2
0
            public override void TraceEvent(TraceEventCache eventCache, string source, TraceEventType eventType, int id)
            {
                var color = GetColor(eventType, id);

                ColorConsole.WriteLine(color, eventCache.DateTime.ToString("[HH:mm:ss.fff]"));
            }