testing: make logging configurable