peng-lab / BaSiCPy

MIT License
62 stars 20 forks source link

Create a verbose option #102

Closed KoenDesplenter closed 1 year ago

KoenDesplenter commented 2 years ago

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.

yfukai commented 1 year ago

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