better integration and configuration of logger module