@Test public void testIsTraceEnabled() { VitamLoggerFactory.setDefaultFactory(new JdkLoggerFactory(VitamLogLevel.TRACE)); final VitamLogger logger = VitamLoggerFactory.getInstance("foo1"); assertTrue(logger.isTraceEnabled()); buf.setLength(0); logger.trace("a"); buf.setLength(0); logger.trace("a", e); buf.setLength(0); logger.trace("", new Object()); logger.trace("", new Object(), new Object()); logger.trace("", new Object(), new Object(), new Object()); buf.setLength(0); logger.setLevel(VitamLogLevel.ERROR); assertFalse(logger.isTraceEnabled()); }
@Override public boolean isTraceEnabled() { return logger.isLoggable(Level.FINEST); }
JdkLogger extends AbstractVitamLogger { @Override public boolean isTraceEnabled() { return logger.isLoggable(Level.FINEST); } }
JdkLogger extends AbstractVitamLogger { @Override public boolean isTraceEnabled() { return logger.isLoggable(Level.FINEST); } JdkLogger(final Logger logger); }
JdkLogger extends AbstractVitamLogger { @Override public boolean isTraceEnabled() { return logger.isLoggable(Level.FINEST); } JdkLogger(final Logger logger); @Override void setLevel(VitamLogLevel level); @Override VitamLogLevel getLevel(); @Override void timeInfo(String msg); @Override void timeInfo(String format, Object... arguments); @Override boolean isTraceEnabled(); @Override void trace(final String msg); @Override void trace(final String format, final Object arg); @Override void trace(final String format, final Object argA, final Object argB); @Override void trace(final String format, final Object... argArray); @Override void trace(final String msg, final Throwable t); @Override boolean isDebugEnabled(); @Override void debug(final String msg); @Override void debug(final String format, final Object arg); @Override void debug(final String format, final Object argA, final Object argB); @Override void debug(final String format, final Object... argArray); @Override void debug(final String msg, final Throwable t); @Override boolean isInfoEnabled(); @Override void info(final String msg); @Override void info(final String format, final Object arg); @Override void info(final String format, final Object argA, final Object argB); @Override void info(final String format, final Object... argArray); @Override void info(final String msg, final Throwable t); @Override boolean isWarnEnabled(); @Override void warn(final String msg); @Override void warn(final String format, final Object arg); @Override void warn(final String format, final Object argA, final Object argB); @Override void warn(final String format, final Object... argArray); @Override void warn(final String msg, final Throwable t); @Override boolean isErrorEnabled(); @Override void error(final String msg); @Override void error(final String format, final Object arg); @Override void error(final String format, final Object argA, final Object argB); @Override void error(final String format, final Object... arguments); @Override void error(final String msg, final Throwable t); }
JdkLogger extends AbstractVitamLogger { @Override public boolean isTraceEnabled() { return logger.isLoggable(Level.FINEST); } JdkLogger(final Logger logger); @Override void setLevel(VitamLogLevel level); @Override VitamLogLevel getLevel(); @Override void timeInfo(String msg); @Override void timeInfo(String format, Object... arguments); @Override boolean isTraceEnabled(); @Override void trace(final String msg); @Override void trace(final String format, final Object arg); @Override void trace(final String format, final Object argA, final Object argB); @Override void trace(final String format, final Object... argArray); @Override void trace(final String msg, final Throwable t); @Override boolean isDebugEnabled(); @Override void debug(final String msg); @Override void debug(final String format, final Object arg); @Override void debug(final String format, final Object argA, final Object argB); @Override void debug(final String format, final Object... argArray); @Override void debug(final String msg, final Throwable t); @Override boolean isInfoEnabled(); @Override void info(final String msg); @Override void info(final String format, final Object arg); @Override void info(final String format, final Object argA, final Object argB); @Override void info(final String format, final Object... argArray); @Override void info(final String msg, final Throwable t); @Override boolean isWarnEnabled(); @Override void warn(final String msg); @Override void warn(final String format, final Object arg); @Override void warn(final String format, final Object argA, final Object argB); @Override void warn(final String format, final Object... argArray); @Override void warn(final String msg, final Throwable t); @Override boolean isErrorEnabled(); @Override void error(final String msg); @Override void error(final String format, final Object arg); @Override void error(final String format, final Object argA, final Object argB); @Override void error(final String format, final Object... arguments); @Override void error(final String msg, final Throwable t);  }