add structured logging and output levels for complete module
At the moment different infos are printed to the terminal. There is a first argument to control debug output by the Connection class.
Implement a unified logging and output for the complete module.