com.j256.ormlite.logger
Class Logger

java.lang.Object
  extended by com.j256.ormlite.logger.Logger

public class Logger
extends Object

Class which wraps our Log interface and provides {} argument features like slf4j. It allows us to plug in additional log systems if necessary.

Author:
graywatson

Constructor Summary
Logger(Log log)
           
 
Method Summary
 void debug(String msg, Object... args)
          Log a debug message.
 void debug(Throwable throwable, String msg, Object... args)
          Log a debug message with a throwable.
 void error(String msg, Object... args)
          Log a error message.
 void error(Throwable throwable, String msg, Object... args)
          Log a error message with a throwable.
 void fatal(String msg, Object... args)
          Log a fatal message.
 void fatal(Throwable throwable, String msg, Object... args)
          Log a fatal message with a throwable.
 void info(String msg, Object... args)
          Log a info message.
 void info(Throwable throwable, String msg, Object... args)
          Log a info message with a throwable.
 boolean isLevelEnabled(Log.Level level)
          Return if logging level is enabled.
 void trace(String msg, Object... args)
          Log a trace message.
 void trace(Throwable throwable, String msg, Object... args)
          Log a trace message with a throwable.
 void warn(String msg, Object... args)
          Log a warning message.
 void warn(Throwable throwable, String msg, Object... args)
          Log a warning message with a throwable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Logger

public Logger(Log log)
Method Detail

isLevelEnabled

public boolean isLevelEnabled(Log.Level level)
Return if logging level is enabled.


trace

public void trace(String msg,
                  Object... args)
Log a trace message.


trace

public void trace(Throwable throwable,
                  String msg,
                  Object... args)
Log a trace message with a throwable.


debug

public void debug(String msg,
                  Object... args)
Log a debug message.


debug

public void debug(Throwable throwable,
                  String msg,
                  Object... args)
Log a debug message with a throwable.


info

public void info(String msg,
                 Object... args)
Log a info message.


info

public void info(Throwable throwable,
                 String msg,
                 Object... args)
Log a info message with a throwable.


warn

public void warn(String msg,
                 Object... args)
Log a warning message.


warn

public void warn(Throwable throwable,
                 String msg,
                 Object... args)
Log a warning message with a throwable.


error

public void error(String msg,
                  Object... args)
Log a error message.


error

public void error(Throwable throwable,
                  String msg,
                  Object... args)
Log a error message with a throwable.


fatal

public void fatal(String msg,
                  Object... args)
Log a fatal message.


fatal

public void fatal(Throwable throwable,
                  String msg,
                  Object... args)
Log a fatal message with a throwable.



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