예제 #1
0
        public void OnLogEvent(EventData logEvent)
        {
            if (logEvent.messageType == EventType.BeginGroup)
            {
                Trace.Indent();
            }
            else if (logEvent.messageType == EventType.EndGroup)
            {
                Trace.Unindent();
            }

            Trace.WriteLine(logEvent.GetDefaultFormatedMessage());
        }
예제 #2
0
 public void OnLogEvent(EventData logEvent)
 {
     string tabs = new String('\t', logEvent.groupDepth);
     Console.WriteLine(tabs + logEvent.GetDefaultFormatedMessage());
 }