Skip to content

Commit

Permalink
Merge pull request Azure#3910 from divyagandhii/dev
Browse files Browse the repository at this point in the history
Log function execution events in linux
  • Loading branch information
divyagandhisethi authored Feb 20, 2019
2 parents 88615cd + 518ffeb commit cac35cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ public override void LogFunctionExecutionAggregateEvent(string siteName, string
public override void LogFunctionExecutionEvent(string executionId, string siteName, int concurrency, string functionName,
string invocationId, string executionStage, long executionTimeSpan, bool success)
{
var logger = _loggerFactory.GetOrCreate(FunctionsExecutionEventsCategory);
WriteEvent(logger, $"{executionStage}");
}

private static void WriteEvent(LinuxAppServiceFileLogger logger, string evt)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public abstract class LinuxEventGenerator : IEventGenerator
public static readonly string FunctionsLogsCategory = "functionslogs";
public static readonly string FunctionsMetricsCategory = "functionsmetrics";
public static readonly string FunctionsDetailsCategory = "functionsdetails";
public static readonly string FunctionsExecutionEventsCategory = "functionexecutionevents";

internal static string NormalizeString(string value)
{
Expand Down

0 comments on commit cac35cb

Please sign in to comment.