예제 #1
0
 public override string GetTraceDataString(TraceEventCache eventCache, string source, TraceEventType eventType, int id, params object[] data)
 {
     return(String.Format("{0}|{1}: {2} - {3} - {4}", Trace.CorrelationManager.ActivityId, eventType, source, StringFormatter.FormatData(data), eventCache.DateTime.ToLocalTime()));
 }
예제 #2
0
 protected override void TraceDataCore(TraceEventCache eventCache, string source, TraceEventType eventType, int id, params object[] data)
 {
     SafeNativeMethods.OutputDebugString(String.Format("{0} {1}({2}) {3} ", eventType, source, id, StringFormatter.FormatData(data)));
 }