com.j256.ormlite.logger
Class CommonsLoggingLog

java.lang.Object
  extended by com.j256.ormlite.logger.CommonsLoggingLog
All Implemented Interfaces:
com.j256.ormlite.logger.Log

public class CommonsLoggingLog
extends Object
implements com.j256.ormlite.logger.Log

Class which implements our Log interface by delegating to the Apache commons logging classes via reflection. We use reflection so we can avoid the dependency. Yes we are delegating to a delegating class.

Author:
graywatson

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.j256.ormlite.logger.Log
com.j256.ormlite.logger.Log.Level
 
Constructor Summary
CommonsLoggingLog(String className)
           
 
Method Summary
 boolean isLevelEnabled(com.j256.ormlite.logger.Log.Level level)
           
 void log(com.j256.ormlite.logger.Log.Level level, String msg)
           
 void log(com.j256.ormlite.logger.Log.Level level, String msg, Throwable t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonsLoggingLog

public CommonsLoggingLog(String className)
Method Detail

isLevelEnabled

public boolean isLevelEnabled(com.j256.ormlite.logger.Log.Level level)
Specified by:
isLevelEnabled in interface com.j256.ormlite.logger.Log

log

public void log(com.j256.ormlite.logger.Log.Level level,
                String msg)
Specified by:
log in interface com.j256.ormlite.logger.Log

log

public void log(com.j256.ormlite.logger.Log.Level level,
                String msg,
                Throwable t)
Specified by:
log in interface com.j256.ormlite.logger.Log


This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.