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

Commit 5822ece

Browse files
Adding milliseconds to file log output
1 parent 4ba9708 commit 5822ece

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.Logging/FileLogAdapter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public FileLogAdapter(string path)
1616

1717
private string GetMessage(string level, string context, string message)
1818
{
19-
var time = DateTime.Now.ToString("yyMMdd-HH:mm:ss");
19+
var time = DateTime.Now.ToString("yyMMdd-HH:mm:ss.fff");
2020
var threadId = Thread.CurrentThread.ManagedThreadId;
2121
return string.Format("{0} {1,5} [{2,2}] {3,-35} {4}{5}", time, level, threadId, context, message, Environment.NewLine);
2222
}

0 commit comments

Comments
 (0)