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

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