add java method to set the log level