made the logger more configurable