Skip to content

Commit

Permalink
Merge pull request Azure#4309 from Azure/logexecutioneventtimestamp
Browse files Browse the repository at this point in the history
Log function execution event timestamp
  • Loading branch information
divyagandhisethi authored Apr 16, 2019
2 parents 0a4498b + 986f01c commit f2ff956
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public override void LogFunctionExecutionEvent(string executionId, string siteNa
string invocationId, string executionStage, long executionTimeSpan, bool success)
{
var logger = _loggerFactory.GetOrCreate(FunctionsExecutionEventsCategory);
WriteEvent(logger, $"{executionStage}");
string currentUtcTime = DateTime.UtcNow.ToString();
WriteEvent(logger, $"{currentUtcTime}");
}

private static void WriteEvent(LinuxAppServiceFileLogger logger, string evt)
Expand Down

0 comments on commit f2ff956

Please sign in to comment.