org.objectweb.util.monolog.wrapper.p6spy
Class P6SpyLogger

java.lang.Object
  extended bycom.p6spy.engine.logging.appender.FormattedLogger
      extended byorg.objectweb.util.monolog.wrapper.p6spy.P6SpyLogger
All Implemented Interfaces:
com.p6spy.engine.logging.appender.P6Logger

public class P6SpyLogger
extends com.p6spy.engine.logging.appender.FormattedLogger
implements com.p6spy.engine.logging.appender.P6Logger

This class is a wrapper between the P6spy loggiing module and monolog. The aim is to log the SQL queries into a monolog loggger.

Author:
S.Chassande-Barrioz

Field Summary
static int level
           
static Logger logger
           
 
Fields inherited from class com.p6spy.engine.logging.appender.FormattedLogger
lastEntry
 
Constructor Summary
P6SpyLogger()
           
 
Method Summary
 void logException(java.lang.Exception e)
           
 void logText(java.lang.String s)
           
 
Methods inherited from class com.p6spy.engine.logging.appender.FormattedLogger
getLastEntry, logSQL, setLastEntry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.p6spy.engine.logging.appender.P6Logger
getLastEntry, logSQL
 

Field Detail

level

public static int level

logger

public static Logger logger
Constructor Detail

P6SpyLogger

public P6SpyLogger()
Method Detail

logText

public void logText(java.lang.String s)
Specified by:
logText in interface com.p6spy.engine.logging.appender.P6Logger

logException

public void logException(java.lang.Exception e)
Specified by:
logException in interface com.p6spy.engine.logging.appender.P6Logger