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())); }
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))); }