ILogger.LogError() 无法记录异常详细信息,是否被 Azure Function 应用程序中的 TelemetryClient() 取代

问题描述

目前,ILogger.LogError() 无法将异常详细信息(例如 stack trace)记录到本地控制台和 azure 控制台,异常消息除外。换句话说,异常消息出现在两个控制台上,没有堆栈跟踪。

请注意其他类型的日志记录,例如信息,正在工作。

请看下面:

ILogger.LogError not logging exception details

Azure Function 团队没有来自以下的回复

https://github.com/Azure/azure-functions-host/issues/6476

有人知道 ILoggerr.LogError() 的路线图吗?

它会被修复,还是被 TelemetryClient() 取代? TelemetryClient 仍然与 ILogger

不同

https://docs.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-5.0#log-level

https://docs.microsoft.com/en-us/azure/app-service/troubleshoot-diagnostic-logs#enable-web-server-logging

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)