@Test public void testLevelNameForValue() throws Exception { for (Level level : new Level[] { Level.CONFIG, Level.FINEST, Level.FINER, Level.FINE, Level.INFO, Level.WARNING, Level.SEVERE,}) { assertEquals(level.getName(), Util.logLevelNameForValue(level.intValue())); } assertEquals("NUCLEAR", Util.logLevelNameForValue(Level.SEVERE.intValue() + 1)); }
public static String logLevelNameForValue(int value) { return logLevelByValue.ceilingEntry(value).getValue(); }
Util { public static String logLevelNameForValue(int value) { return logLevelByValue.ceilingEntry(value).getValue(); } }
Util { public static String logLevelNameForValue(int value) { return logLevelByValue.ceilingEntry(value).getValue(); } private  Util(); }
Util { public static String logLevelNameForValue(int value) { return logLevelByValue.ceilingEntry(value).getValue(); } private  Util(); static String logLevelNameForValue(int value); static void formatTimeSecondsSinceEpoch(final long time, StringBuilder sbuffer); static void formatTimeISO(long time, StringBuilder sbuffer); static String escape(String s); }
Util { public static String logLevelNameForValue(int value) { return logLevelByValue.ceilingEntry(value).getValue(); } private  Util(); static String logLevelNameForValue(int value); static void formatTimeSecondsSinceEpoch(final long time, StringBuilder sbuffer); static void formatTimeISO(long time, StringBuilder sbuffer); static String escape(String s);  }