Skip to content Skip to sidebar Skip to footer

Why Does Info Get Logged In Debug Logs

I am using yaml to config logging for my Python application. version: 1 disable_existing_loggers: False formatters: standard: format: '%(asctime)s - %(name)s - %(level

Solution 1:

The levels of python loggers and handlers are thresholds. If you specify your level as DEBUG, it means that anything equal or above DEBUG will be logged.

If you want to have a DEBUG logging only, you'll have to additionally assign a filter that will filter anything but DEBUG message.

Post a Comment for "Why Does Info Get Logged In Debug Logs"