net.sf.log4jdbc
Class SpyLogFactory

java.lang.Object
  extended by net.sf.log4jdbc.SpyLogFactory

public class SpyLogFactory
extends java.lang.Object

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.

Author:
Arthur Blake Modified for org.perf.log.* project to plug-in SQLInterceptorSpyLogDelegator() instead of SLF4JSpyDelegator There is no dependency on SLF4J. Applications can use any logger. A sample application logger with hooks to PerfLog is provided in the AppLogger project, Pradeep Nambiar, Pexus LLC

Method Summary
static SpyLogDelegator getSpyLogDelegator()
          Get the default SpyLogDelegator for logging to the logger.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSpyLogDelegator

public static SpyLogDelegator getSpyLogDelegator()
Get the default SpyLogDelegator for logging to the logger.

Returns:
the default SpyLogDelegator for logging to the logger.