Make logging configurable.