Skip to content

Commit 18613b2

Browse files
committed
Added timestamp to tracing.
1 parent a6f0d27 commit 18613b2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Renci.SshNet/Abstractions/DiagnosticAbstraction.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Diagnostics;
1+
using System;
2+
using System.Diagnostics;
23
#if FEATURE_DIAGNOSTICS_TRACESOURCE
34
using System.Threading;
45
#endif // FEATURE_DIAGNOSTICS_TRACESOURCE
@@ -28,7 +29,7 @@ public static bool IsEnabled(TraceEventType traceEventType)
2829
public static void Log(string text)
2930
{
3031
#if FEATURE_DIAGNOSTICS_TRACESOURCE
31-
Loggging.TraceEvent(TraceEventType.Verbose, Thread.CurrentThread.ManagedThreadId, text);
32+
Loggging.TraceEvent(TraceEventType.Verbose, Thread.CurrentThread.ManagedThreadId, DateTime.Now + ": " + text);
3233
#endif // FEATURE_DIAGNOSTICS_TRACESOURCE
3334
}
3435
}

0 commit comments

Comments
 (0)