diff --git a/Logging/LogFile.cs b/Logging/LogFile.cs index 349e7c6..8c0ff2f 100644 --- a/Logging/LogFile.cs +++ b/Logging/LogFile.cs @@ -49,7 +49,7 @@ private static string GetTimestamp() { - return $"[{DateTime.UtcNow.ToString("u")}]"; + return $"[{DateTime.UtcNow.ToString("o")}]"; } private void EnsurePathExists(string filename) diff --git a/Logging/StatusLog.cs b/Logging/StatusLog.cs index 06c9f22..a62c70a 100644 --- a/Logging/StatusLog.cs +++ b/Logging/StatusLog.cs @@ -20,11 +20,12 @@ namespace Logging { Write(new StatusLogJson { - time = DateTime.UtcNow.ToString("u"), + time = DateTime.UtcNow.ToString("o"), runid = NameUtils.GetRunId(), status = resultStatus, testid = NameUtils.GetTestId(), codexid = codexId, + category = NameUtils.GetCategoryName(), fixturename = fixtureName, testname = NameUtils.GetTestMethodName() }); @@ -53,6 +54,7 @@ namespace Logging public string status { get; set; } = string.Empty; public string testid { get; set; } = string.Empty; public string codexid { get; set; } = string.Empty; + public string category { get; set; } = string.Empty; public string fixturename { get; set; } = string.Empty; public string testname { get; set; } = string.Empty; }