public final class Log4JLog extends FormattedLog
SQLLog.BatchLogger
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
isEnabled()
Used to ask implementations if logging is enabled.
|
protected void |
log(String msg)
Log the statement passed in
|
logBatch, logBeginTransaction, logCheckpointTransaction, logCommitTransaction, logObtainHandle, logPreparedBatch, logReleaseCheckpointTransaction, logReleaseHandle, logRollbackToCheckpoint, logRollbackTransaction, logSQL
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 atprotected boolean isEnabled()
FormattedLog
isEnabled
in class FormattedLog
protected void log(String msg)
FormattedLog
log
in class FormattedLog
msg
- the message to logCopyright © 2018. All rights reserved.