peng-lab/BaSiCPy

Create a verbose option

Closed this issue · 1 comments

Could you create a verbose option for the BaSiC object.
It would be nice to disable the logs of BaSiC since it produces a lot of log statements.

Hi, thanks @KoenDesplenter for your feedback, and we're sorry for the late reply.
Now, the default logging level is set to warning, which prints the log only when something wrong happened.
You can further change the log level in a standard way:

import logging
logger = logging.getLogger("basicpy")
logger.setLevel(logging.DEBUG) # for the finest level