better logging configuration