updated logger so that it can be changed through the CLI