Add configuration option to disable logging

See issue #34