Added methods to change the log level on the fly