sovabids.loggers#

Module dealing with logging related functionality and settings

Module Contents#

Functions#

_excepthook(*args)

Catch Exceptions to logger.

setup_logging([log_file, debug])

Setup the logging

sovabids.loggers._excepthook(*args)[source]#

Catch Exceptions to logger.

Notes

See https://code.activestate.com/recipes/577074-logging-asserts/

sovabids.loggers.setup_logging(log_file=None, debug=False)[source]#

Setup the logging

Parameters:
  • log_file (str) – Name of the logfile

  • debug (bool) – Set log level to DEBUG if debug==True

Returns:

The logger.

Return type:

logging.logger

Notes

This function is a copy of the one found in bidscoin. https://github.com/Donders-Institute/bidscoin/blob/748ea2ba537b06d8eee54ac7217b909bdf91a812/bidscoin/bidscoin.py#L41-L83