Real-time logs are monitored using the log stream on the Azure Functions portal screen.
The Information level log 'Executing / Executed' output from the runtime is disturbing and I want to prevent it from being displayed.
The host.json contains the following, but I am not sure if this setting is really reflected.
(The logs output from my own LogInformation function also appear in the log stream, even if I have included the following).
{
"version": "2.0",
"logging": {
"logLevel": {
"Function.WatchLocationDataFunc": "Warning",
"Function.WatchLocationDataFunc.User": "Warning",
"Host.Aggregator": "Warning",
"Host.Results": "Warning"
},
"applicationInsights": {
"samplingSettings": {
"isEnabled": true,
"excludedTypes": "Request"
}
}
}
}
We have also tried the following with reference to other QAs
{
"version": "2.0",
"logging": {
"logLevel": {
"Function.WatchLocationDataFunc.User": "Information",
"Function": "Error"
},
"applicationInsights": {
"samplingSettings": {
"isEnabled": true,
"excludedTypes": "Request"
}
}
}
}
How can I hide the Executing / Executed log?
Can't the log level displayed in the log stream be restricted in host.json?
Thanks in advance.