|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.skife.jdbi.v2.logging.FormattedLog
org.skife.jdbi.v2.logging.Log4JLog
public final class Log4JLog
Logs SQL via Log4J
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.skife.jdbi.v2.tweak.SQLLog |
|---|
SQLLog.BatchLogger |
| Constructor Summary | |
|---|---|
Log4JLog()
Logs to org.skife.jdbi.v2 logger at the debug level |
|
Log4JLog(org.apache.log4j.Logger log)
Use an arbitrary logger to log to at the debug level |
|
Log4JLog(org.apache.log4j.Logger log,
org.apache.log4j.Priority level)
Specify both the logger and the priority to log at |
|
| Method Summary | |
|---|---|
protected boolean |
isEnabled()
Used to ask implementations if logging is enabled. |
protected void |
log(String msg)
Log the statement passed in |
| Methods inherited from class org.skife.jdbi.v2.logging.FormattedLog |
|---|
logBatch, logBeginTransaction, logCheckpointTransaction, logCommitTransaction, logObtainHandle, logPreparedBatch, logReleaseCheckpointTransaction, logReleaseHandle, logRollbackToCheckpoint, logRollbackTransaction, logSQL |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Log4JLog()
public Log4JLog(org.apache.log4j.Logger log)
public Log4JLog(org.apache.log4j.Logger log,
org.apache.log4j.Priority level)
log - The logger to log tolevel - the priority to log at| Method Detail |
|---|
protected final boolean isEnabled()
FormattedLog
isEnabled in class FormattedLogprotected final void log(String msg)
FormattedLog
log in class FormattedLogmsg - the message to log
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||