logger in debug mode