Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 704ac8e

Browse files
committed
Thread information is important in the logs
1 parent 0fac09d commit 704ac8e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/GitHub.Logging/ConsoleLogAdapter.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ public class ConsoleLogAdapter : LogAdapterBase
88
private string GetMessage(string context, string message)
99
{
1010
var time = DateTime.Now.ToString("HH:mm:ss.fff tt");
11-
return $"{time} {context} {message}";
11+
var threadId = Thread.CurrentThread.ManagedThreadId;
12+
return string.Format("{0} [{1,2}] {2} {3}", time, threadId, context, message);
1213
}
1314

1415
public override void Info(string context, string message)

0 commit comments

Comments
 (0)