Would be very useful for debugging, particularly if the logging level could be set using an environment var. At present, debugging via print is made difficult by aggressive use of IPython.utils.io.capture_output.
See https://docs.python-guide.org/writing/logging/ for ideas on how to set this up.