add a util method for changing the log level while running

I would explain that this will override any user-defined log settings.