better logging output when changing logLevel