This PR replaces the various print calls throughout the library with equivalent(-ish) logging.log calls, the latter having the advantage of greater user-control of the printed output and the which stream(s) are used therefor.
A best effort has been made to pick appropriate logging levels based on contact clues, .e.g a message previously being prefixed with "WARNING: " or, in the case of CRITICAL, a message mentioning an internal error and the user should contact the developers. Furthermore, logging messages based on a type of caught exception now also include the exceptions traceback, as these are in my experience extremely usefull when debugging exceptions.
Closes https://github.com/NLeSC/noodles/issues/85
This PR replaces the various
print
calls throughout the library with equivalent(-ish)logging.log
calls, the latter having the advantage of greater user-control of the printed output and the which stream(s) are used therefor.A best effort has been made to pick appropriate logging levels based on contact clues, .e.g a message previously being prefixed with "WARNING: " or, in the case of
CRITICAL
, a message mentioning an internal error and the user should contact the developers. Furthermore, logging messages based on a type of caught exception now also include the exceptions traceback, as these are in my experience extremely usefull when debugging exceptions.