internal static void LogException(this ILogger logger, Exception exception) { logger?.LogError(exception, exception.Message); } }