使用Datastax Cassandra Java Client(3.2.0),是否有一种以编程方式控制客户端日志的日志级别的方法?
答案 0 :(得分:1)
例如:
LoggerContext loggerContext = (LoggerContext)LoggerFactory.getILoggerFactory();
Logger rootLogger = loggerContext.getLogger("com.datastax.driver.core.Connection");
rootLogger.setLevel(Level.TRACE);