BinPy package


BinPy.base module


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

BinPy.base.set_logging(log_level, myfilename=None)[source]

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

Table Of Contents

Previous topic

Welcome to BinPy’s documentation!

Next topic

BinPy.Algorithms package

This Page