add log level control