make logging configurable