Function setLoggerLevel