com.j256.ormlite.logger
Class JavaUtilLog

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

public class JavaUtilLog
extends Object
implements Log

Class which logs to java.util.log. This is not detected by default so is here for now as a reference implementation.

Author:
graywatson

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.j256.ormlite.logger.Log
Log.Level
 
Constructor Summary
JavaUtilLog(String className)
           
 
Method Summary
 boolean isLevelEnabled(Log.Level level)
          Returns true if the log mode is in trace or higher.
 void log(Log.Level level, String msg)
          Log a trace message.
 void log(Log.Level level, String msg, Throwable throwable)
          Log a trace message with a throwable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaUtilLog

public JavaUtilLog(String className)
Method Detail

isLevelEnabled

public boolean isLevelEnabled(Log.Level level)
Description copied from interface: Log
Returns true if the log mode is in trace or higher.

Specified by:
isLevelEnabled in interface Log

log

public void log(Log.Level level,
                String msg)
Description copied from interface: Log
Log a trace message.

Specified by:
log in interface Log

log

public void log(Log.Level level,
                String msg,
                Throwable throwable)
Description copied from interface: Log
Log a trace message with a throwable.

Specified by:
log in interface Log


Copyright © 2011. All Rights Reserved.