Improve logging to Logr4r format and improve configuration