add method to set level of logger