use python logging module for messages instead of print()

I am awaiting your thoughts on whether to keep the logging configuration file model or implement the switch in another way.

Note that the current implementation means that I no longer have to specify `disable_existing_loggers=True`