azure-functions-core-tools
azure-functions-core-tools copied to clipboard
Azure Functions - Disable this log - "Sending HTTP request GET https//...."
Hi,
We make multiple http request, I don't want to see this puke
Sending HTTP request GET https://www.some-external-api.com....
How can I disable these logs?
I tried "logging:logLevel:Microsoft.Azure.WebJobs.Script.WebHost.Middleware.SystemTraceMiddleware": "None" and it didn't work..
For example I don't want to see these HTTP logs that are similar to this

bump
hello?
is anyone out there? *echoes *
Imagine - a whole week - and not even a comment lol.
hey, its me again
Hi @Yashuaa 👋
Where are you seeing this log messages? How does your Logging or LogLevel settings configured? You should be able to update the log level for any logger category using these settings.
Hi @kshyju . This is in Azure Functions Log Stream... I can't find out how to suppress... I've looked everywhere, I don't think it's possible to suppress just the request garbage and not EVERYTHING under the information category .... does that make sense ?
@Yashuaa Can your host.JSON, specifically the logging portion of the JSON. Also, Is this is a V3 app or V4? In-proc or isolated?
FYI here's a pretty good writeup of how to suppress various logs: https://github.com/anthonychu/functions-log-suppression
In addition to @kshyju's questions - I'm also curious what language this is for? (.NET/JavaScript/etc.)
this is .NET 6 C# Azure Function v4 (the latest)
@Yashuaa Can your host.JSON, specifically the logging portion of the JSON?
sure..
"logging": {
"logLevel": {
"Function": "Information",
"default": "None"
},
"applicationInsights": {
"samplingSettings": {
"isEnabled": true,
"excludedTypes": "Request"
},
"httpAutoCollectionOptions": {
"enableHttpTriggerExtendedInfoCollection": false,
"enableW3CDistributedTracing": false,
"enableResponseHeaderInjection": false
}
}
}
Any ideas anyone? @kshyju
I guess there is no way to do this unless you change the log level above Information, but then you suppress all of your logs.