【发布时间】:2019-12-30 01:36:04
【问题描述】:
我想调整 Azure Functions 应用(v2、.NET Core)的日志记录行为。因此我将host.json调整如下:
"logging": {
"fileLoggingMode": "debugOnly",
"logLevel": {
"default": "None",
"Host.Results": "Information",
"Function": "Information",
"Host.Aggregator": "Information"
},
"applicationInsights": {
"samplingSettings": {
"isEnabled": false,
"maxTelemetryItemsPerSecond": 5
}
}
}
这方面的两个问题:
自从我这样做后,我在 Application Insights 中看不到新日志。为什么?
此外,fileLoggingMode 及其可能的值 never、always 和 debugOnly 代表什么?我还没有找到很好的解释。
谢谢
【问题讨论】:
标签: logging .net-core azure-functions