I'm using injected instance of ILogger instead of TraceWritter. The instance is injected fromm the Azure Function Runtime. I want to log a captured exception. The only overload of LogError that can accept a Exception is the extension method from class LoggerExtensions:
void LogError(this ILogger logger, EventId eventId, Exception exception, string message, params object[] args)
The problem is: this method receive a EventId as second argument, from where i can take the current EventId to use here? (I suppose each AF execution has his unique EventId).