Skip to content

Commit b057bb7

Browse files
authored
Switch to w3c log file timestamp format (#626)
1 parent 99f48ae commit b057bb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/PowerShellEditorServices/Utility/FileLogger.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public void Write(
8282
// Print the timestamp and log level
8383
this.textWriter.WriteLine(
8484
"{0} [{1}] - Method \"{2}\" at line {3} of {4}\r\n",
85-
DateTime.Now,
85+
DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"),
8686
logLevel.ToString().ToUpper(),
8787
callerName,
8888
callerLineNumber,

0 commit comments

Comments
 (0)