Make logging configurable