@Test public void testThrowing() throws Exception { Logger logger = createNiceMock(Logger.class); Formatter formatter = createNiceMock(Formatter.class); Exception exception = new IllegalStateException("Something went wrong!"); JpaLogger jpaLogger = new TestJpaLogger(logger, formatter); logger.error(null, exception); replay(logger, formatter); jpaLogger.throwing(exception); verify(logger, formatter); }
@Override public void throwing(Throwable throwable) { getLogger().error(null, throwable); }
JpaLogger extends AbstractSessionLog { @Override public void throwing(Throwable throwable) { getLogger().error(null, throwable); } }
JpaLogger extends AbstractSessionLog { @Override public void throwing(Throwable throwable) { getLogger().error(null, throwable); }  }
JpaLogger extends AbstractSessionLog { @Override public void throwing(Throwable throwable) { getLogger().error(null, throwable); }  @Override void log(SessionLogEntry sessionLogEntry); @Override void throwing(Throwable throwable); @Override boolean shouldLog(int level, String category); Level getLogLevel(); void setLogLevel(Level logLevel); }
JpaLogger extends AbstractSessionLog { @Override public void throwing(Throwable throwable) { getLogger().error(null, throwable); }  @Override void log(SessionLogEntry sessionLogEntry); @Override void throwing(Throwable throwable); @Override boolean shouldLog(int level, String category); Level getLogLevel(); void setLogLevel(Level logLevel); public Level logLevel; static final Level[] JAVA_LOG_LEVELS; }