public class DataSourceLogs extends Object
Constructor and Description |
---|
DataSourceLogs() |
Modifier and Type | Method and Description |
---|---|
Log |
getJDBCLog()
The log to write JDBC messages to.
|
Log |
getSQLLog()
The log to write SQL messages to.
|
boolean |
isJDBCEnabled()
Return true if JDBC logging is enabled.
|
boolean |
isSQLEnabled()
Return true if SQL logging is enabled.
|
void |
logJDBC(String msg,
Connection conn)
Log a JDBC message on behalf of the given connection.
|
void |
logJDBC(String msg,
long startTime,
Connection conn)
Log a JDBC message on behalf of the given connection.
|
void |
logSQL(String msg,
Connection conn)
Log a SQL message on behalf of the given connection.
|
void |
logSQL(String msg,
long startTime,
Connection conn)
Log a SQL message on behalf of the given connection.
|
void |
setJDBCLog(Log log)
The log to write JDBC messages to.
|
void |
setSQLLog(Log log)
The log to write SQL messages to.
|
public Log getJDBCLog()
public void setJDBCLog(Log log)
public boolean isJDBCEnabled()
public Log getSQLLog()
public void setSQLLog(Log log)
public boolean isSQLEnabled()
public void logJDBC(String msg, Connection conn)
public void logJDBC(String msg, long startTime, Connection conn)
public void logSQL(String msg, Connection conn)
public void logSQL(String msg, long startTime, Connection conn)
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.