How to turn off Debug logging on IIS App from Database?

I have a problematic iis monitor with too many sites on it. I disabled some components on it from the db. I may have turned on the application's debug logging a long time ago and forgot about it. It's getting bigger and bigger and its performance is decreasing while writing logs. I want to disable it but the application can't even be opened and eventually it won't load.

How to turn off Debug logging on IIS App from Database or another ways?