made logging configurable