Added timestamp to tracing.

This commit is contained in:
drieseng
2016-12-02 18:18:03 +01:00
parent a6f0d27fbe
commit 18613b2e6e
@@ -1,4 +1,5 @@
using System.Diagnostics;
using System;
using System.Diagnostics;
#if FEATURE_DIAGNOSTICS_TRACESOURCE
using System.Threading;
#endif // FEATURE_DIAGNOSTICS_TRACESOURCE
@@ -28,7 +29,7 @@ namespace Renci.SshNet.Abstractions
public static void Log(string text)
{
#if FEATURE_DIAGNOSTICS_TRACESOURCE
Loggging.TraceEvent(TraceEventType.Verbose, Thread.CurrentThread.ManagedThreadId, text);
Loggging.TraceEvent(TraceEventType.Verbose, Thread.CurrentThread.ManagedThreadId, DateTime.Now + ": " + text);
#endif // FEATURE_DIAGNOSTICS_TRACESOURCE
}
}