Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 518 Bytes

Debug.md

File metadata and controls

20 lines (13 loc) · 518 Bytes

python-OBD uses python's builtin logging system. By default, it is setup to send output to stderr with a level of WARNING. The module's logger can be accessed via the logger variable at the root of the module. For instance, to enable console printing of all debug messages, use the following snippet:

import obd
import logging

obd.logger.setLevel(logging.DEBUG)

Or, to silence all logging output from python-OBD:

import obd

obd.logger.removeHandler(obd.console_handler)