Add util method to set log levels