add a util method for changing the log level while running

can we call this `setLoggingLevel` so it's consistent with the other one?