| Package | Description |
|---|---|
| net.sf.log4jdbc.log | |
| net.sf.log4jdbc.log.log4j2 | |
| net.sf.log4jdbc.log.slf4j | |
| net.sf.log4jdbc.sql.jdbcapi |
| Modifier and Type | Method and Description |
|---|---|
static SpyLogDelegator |
SpyLogFactory.getSpyLogDelegator()
Return the
SpyLogDelegator. |
| Modifier and Type | Method and Description |
|---|---|
static void |
SpyLogFactory.setSpyLogDelegator(SpyLogDelegator logDelegator) |
| Modifier and Type | Class and Description |
|---|---|
class |
Log4j2SpyLogDelegator
Delegates JDBC spy logging events to log4j2.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Slf4jSpyLogDelegator
Delegates JDBC spy logging events to the the Simple Logging Facade for Java (slf4j).
|
| Modifier and Type | Field and Description |
|---|---|
protected SpyLogDelegator |
StatementSpy.log |
| Modifier and Type | Method and Description |
|---|---|
SpyLogDelegator |
DataSourceSpy.getLogDelegator()
Get the
SpyLogDelegator that are used by all resources
obtained starting from this DataSource
(Connections, ResultSets, ...). |
| Modifier and Type | Method and Description |
|---|---|
void |
DataSourceSpy.setLogDelegator(SpyLogDelegator spyLogDelegator)
Set a custom
SpyLogDelegator to be used by all resources
provided by this DataSource, rather than the default
SpyLogDelegator returned by
SpyLogFactory#getSpyLogDelegator(). |
| Constructor and Description |
|---|
CallableStatementSpy(String sql,
ConnectionSpy connectionSpy,
CallableStatement realCallableStatement,
SpyLogDelegator logDelegator)
Create a CallableStatementSpy (JDBC 4 version) to spy upon a CallableStatement.
|
ConnectionSpy(Connection realConnection,
long execTime,
SpyLogDelegator logDelegator)
Create a new ConnectionSpy that wraps a given Connection.
|
ConnectionSpy(Connection realConnection,
RdbmsSpecifics rdbmsSpecifics,
long execTime,
SpyLogDelegator logDelegator)
Create a new ConnectionSpy that wraps a given Connection.
|
ConnectionSpy(Connection realConnection,
RdbmsSpecifics rdbmsSpecifics,
SpyLogDelegator logDelegator)
Create a new ConnectionSpy that wraps a given Connection.
|
ConnectionSpy(Connection realConnection,
SpyLogDelegator logDelegator)
Create a new ConnectionSpy that wraps a given Connection.
|
PreparedStatementSpy(String sql,
ConnectionSpy connectionSpy,
PreparedStatement realPreparedStatement,
SpyLogDelegator logDelegator)
Create a PreparedStatementSpy (JDBC 4 version) for logging activity of another PreparedStatement.
|
ResultSetSpy(StatementSpy parent,
ResultSet realResultSet,
SpyLogDelegator logDelegator)
Create a new ResultSetSpy that wraps another ResultSet object, that logs all method calls, expceptions, etc.
|
StatementSpy(ConnectionSpy connectionSpy,
Statement realStatement,
SpyLogDelegator logDelegator)
Create a StatementSpy that wraps another Statement
for the purpose of logging all method calls, sql, exceptions and return values.
|
Copyright © 2013 Bgee - Swiss Institute of Bioinformatics. All Rights Reserved.