add a util method for changing the log level while running