Implements cli part for #542: Make logging configurable