I'm trying to disable all logging below Warning level in my Azure Functions (isolated, .NET 7)
The logging I'm trying to disable is from the Azure.Messaging.EventHubs and Azure.Messaging.ServiceBus categories, for which I have triggers in my Function app.
An example of log rules:
Hi there,
I'm trying to disable all logging below Warning level in my Azure Functions (isolated, .NET 7) The logging I'm trying to disable is from the
Azure.Messaging.EventHubs
andAzure.Messaging.ServiceBus
categories, for which I have triggers in my Function app. An example of log rules:Completed receiving events for Event Hub: xxx (Consumer Group: 'yyy', Partition Id: '8'); Operation Id: '7d27c6b8-b909-44a0-a98c-7fc9ad8d498c'. Service Retry Count: 0; Event Count: 0; Duration: '60.01' seconds
xxx/Subscriptions/yyy-93337300-67c8-4c69-ba48-570f7a5dd732-S128: RenewSessionLockAsync start. SessionId = 128
I've setup my code like this:
And my host.json like this:
But the log rules below the Error level still come through.
How can I do this properly?