【发布时间】:2018-07-05 07:52:46
【问题描述】:
我的函数引用了一个引用 Microsoft.Extensions.Logging.Abstractions 2.0.0 的程序集。如果我将对该版本的 nuget 引用添加到函数的程序集中,函数执行将失败并显示:
[2018 年 1 月 25 日晚上 11:14:46] Microsoft.Azure.WebJobs.Host:索引错误 方法“TrainingFunction.Run”。 Microsoft.Azure.WebJobs.Host:不能 将参数“log”绑定到 ILogger。确保参数类型是 绑定支持。如果您使用绑定扩展(例如 ServiceBus、Timers 等)确保你已经调用了注册 启动代码中扩展的方法(例如 config.UseServiceBus()、config.UseTimers() 等)。
是否可以在 Azure 函数中使用较新的记录器? (SDK 1.0.7)
【问题讨论】:
标签: azure azure-functions azure-functions-runtime