@Test public void testSetLogLevel() { Configuration conf = new Configuration(); Level currentLevel = Logger.getLogger(this.getClass()).getLevel(); ConfiguratorBase.setLogLevel(this.getClass(), conf, Level.DEBUG); Logger.getLogger(this.getClass()).setLevel(currentLevel); assertEquals(Level.DEBUG, ConfiguratorBase.getLogLevel(this.getClass(), conf)); ConfiguratorBase.setLogLevel(this.getClass(), conf, Level.INFO); Logger.getLogger(this.getClass()).setLevel(currentLevel); assertEquals(Level.INFO, ConfiguratorBase.getLogLevel(this.getClass(), conf)); ConfiguratorBase.setLogLevel(this.getClass(), conf, Level.FATAL); Logger.getLogger(this.getClass()).setLevel(currentLevel); assertEquals(Level.FATAL, ConfiguratorBase.getLogLevel(this.getClass(), conf)); }
public static void setLogLevel(Class<?> implementingClass, Configuration conf, Level level) { checkArgument(level != null, "level is null"); Logger.getLogger(implementingClass).setLevel(level); conf.setInt(enumToConfKey(implementingClass, GeneralOpts.LOG_LEVEL), level.toInt()); }
ConfiguratorBase { public static void setLogLevel(Class<?> implementingClass, Configuration conf, Level level) { checkArgument(level != null, "level is null"); Logger.getLogger(implementingClass).setLevel(level); conf.setInt(enumToConfKey(implementingClass, GeneralOpts.LOG_LEVEL), level.toInt()); } }
ConfiguratorBase { public static void setLogLevel(Class<?> implementingClass, Configuration conf, Level level) { checkArgument(level != null, "level is null"); Logger.getLogger(implementingClass).setLevel(level); conf.setInt(enumToConfKey(implementingClass, GeneralOpts.LOG_LEVEL), level.toInt()); }  }
ConfiguratorBase { public static void setLogLevel(Class<?> implementingClass, Configuration conf, Level level) { checkArgument(level != null, "level is null"); Logger.getLogger(implementingClass).setLevel(level); conf.setInt(enumToConfKey(implementingClass, GeneralOpts.LOG_LEVEL), level.toInt()); }  static void setConnectorInfo(Class<?> implementingClass, Configuration conf,
      String principal, AuthenticationToken token); static void setConnectorInfo(Class<?> implementingClass, Configuration conf,
      String principal, String tokenFile); static Boolean isConnectorInfoSet(Class<?> implementingClass, Configuration conf); static String getPrincipal(Class<?> implementingClass, Configuration conf); static AuthenticationToken getAuthenticationToken(Class<?> implementingClass,
      Configuration conf); static AuthenticationToken getTokenFromFile(Class<?> implementingClass, Configuration conf,
      String principal, String tokenFile); static void setZooKeeperInstance(Class<?> implementingClass, Configuration conf,
      org.apache.accumulo.core.client.ClientConfiguration clientConfig); static org.apache.accumulo.core.client.Instance getInstance(Class<?> implementingClass,
      Configuration conf); static org.apache.accumulo.core.client.ClientConfiguration getClientConfiguration(Class<?> implementingClass, Configuration conf); static void setLogLevel(Class<?> implementingClass, Configuration conf, Level level); static Level getLogLevel(Class<?> implementingClass, Configuration conf); static void setVisibilityCacheSize(Configuration conf, int visibilityCacheSize); static int getVisibilityCacheSize(Configuration conf); static AuthenticationToken unwrapAuthenticationToken(JobConf job,
      AuthenticationToken token); static AuthenticationToken unwrapAuthenticationToken(JobContext job,
      AuthenticationToken token); static ClientContext client(Class<?> CLASS, Configuration conf); static ClientContext client(Class<?> CLASS,
      org.apache.accumulo.core.client.mapreduce.RangeInputSplit split, Configuration conf); }
ConfiguratorBase { public static void setLogLevel(Class<?> implementingClass, Configuration conf, Level level) { checkArgument(level != null, "level is null"); Logger.getLogger(implementingClass).setLevel(level); conf.setInt(enumToConfKey(implementingClass, GeneralOpts.LOG_LEVEL), level.toInt()); }  static void setConnectorInfo(Class<?> implementingClass, Configuration conf,
      String principal, AuthenticationToken token); static void setConnectorInfo(Class<?> implementingClass, Configuration conf,
      String principal, String tokenFile); static Boolean isConnectorInfoSet(Class<?> implementingClass, Configuration conf); static String getPrincipal(Class<?> implementingClass, Configuration conf); static AuthenticationToken getAuthenticationToken(Class<?> implementingClass,
      Configuration conf); static AuthenticationToken getTokenFromFile(Class<?> implementingClass, Configuration conf,
      String principal, String tokenFile); static void setZooKeeperInstance(Class<?> implementingClass, Configuration conf,
      org.apache.accumulo.core.client.ClientConfiguration clientConfig); static org.apache.accumulo.core.client.Instance getInstance(Class<?> implementingClass,
      Configuration conf); static org.apache.accumulo.core.client.ClientConfiguration getClientConfiguration(Class<?> implementingClass, Configuration conf); static void setLogLevel(Class<?> implementingClass, Configuration conf, Level level); static Level getLogLevel(Class<?> implementingClass, Configuration conf); static void setVisibilityCacheSize(Configuration conf, int visibilityCacheSize); static int getVisibilityCacheSize(Configuration conf); static AuthenticationToken unwrapAuthenticationToken(JobConf job,
      AuthenticationToken token); static AuthenticationToken unwrapAuthenticationToken(JobContext job,
      AuthenticationToken token); static ClientContext client(Class<?> CLASS, Configuration conf); static ClientContext client(Class<?> CLASS,
      org.apache.accumulo.core.client.mapreduce.RangeInputSplit split, Configuration conf);  }