|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.log4jdbc.SpyLogFactory
public class SpyLogFactory
A provider for a SpyLogDelegator. This allows a single switch point to abstract away which logging system to use for spying on JDBC calls. The SLF4J logging facade is used, which is a very good general purpose facade for plugging into numerous java logging systems, simply and easily.
| Method Summary | |
|---|---|
static SpyLogDelegator |
getSpyLogDelegator()
Get the default SpyLogDelegator for logging to the logger. |
static void |
setSpyLogDelegator(SpyLogDelegator logDelegator)
Optionally override the SpyLogDelegator implementation
and thus take more control over the logging.Note: It is the caller's responsibility to make sure this is set before JDBC activity occurs and to ensure thread safety. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static SpyLogDelegator getSpyLogDelegator()
public static void setSpyLogDelegator(SpyLogDelegator logDelegator)
SpyLogDelegator implementation
and thus take more control over the logging.
logDelegator - the log delegator responsible for actually logging
JDBC events.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||