public void OnLogEvent(EventData logEvent) { if (logEvent.messageType == EventType.BeginGroup) { Trace.Indent(); } else if (logEvent.messageType == EventType.EndGroup) { Trace.Unindent(); } Trace.WriteLine(logEvent.GetDefaultFormatedMessage()); }
public void OnLogEvent(EventData logEvent) { string tabs = new String('\t', logEvent.groupDepth); Console.WriteLine(tabs + logEvent.GetDefaultFormatedMessage()); }