BinPy

BinPy.base module

BinPy.base.get_logging_level()

This function prints the current logging level of the main logger.

BinPy.base.init_logging(log_level)
BinPy.base.ipython_exception_handler(shell, excType, excValue, traceback, tb_offset=0)
BinPy.base.read_logging_level(log_level)
BinPy.base.set_logging(log_level, myfilename=None)

This function sets the threshold for the logging system and, if desired, directs the messages to a logfile. Level options:

‘DEBUG’ or 1 ‘INFO’ or 2 ‘WARNING’ or 3 ‘ERROR’ or 4 ‘CRITICAL’ or 5

If the user is on the interactive shell and wants to log to file, a custom excepthook is set. By default, if logging to file is not enabled, the way errors are displayed on the interactive shell is not changed.

Module contents