added setLogLevel API