@Override public void info(Object message, Throwable t) { if (isDirtySilence()) { return; } logger.l3(String.valueOf(message), t); }
@Override public boolean isErrorEnabled() { if (isDirtySilence()) { return false; } return logger.isNeedLog2(); }
@Override public void error(Object message) { if (isDirtySilence()) { return; } logger.l2(String.valueOf(message)); }
@Override public void fatal(Object message, Throwable t) { logger.l1(String.valueOf(message), t); }
@Override public void fatal(Object message) { logger.l1(String.valueOf(message)); }
public LogWrapper(String logname) { dirtySilence = logname != null && logname.contains("ormlite"); logger = Logger.getLogger(logname); }
@Override public boolean isFatalEnabled() { return logger.isNeedLog1(); }