logging-api 1.0.1.Final

org.ocpsoft.logging
Class JDKLogAdapter

java.lang.Object
  extended by org.ocpsoft.logging.Logger
      extended by org.ocpsoft.logging.JDKLogAdapter

public class JDKLogAdapter
extends Logger

Implementation of a log adapter that delegates to the JDK 1.4 logging API.

Author:
Christian Kaltepoth

Nested Class Summary
 
Nested classes/interfaces inherited from class org.ocpsoft.logging.Logger
Logger.Level
 
Constructor Summary
JDKLogAdapter(java.lang.String name)
           
 
Method Summary
protected  java.util.logging.Level getJdkLogLevel(Logger.Level level)
          Translates the log level to JDK Level class.
protected  boolean isEnabled(Logger.Level level)
           
protected  void log(Logger.Level level, java.lang.String msg, java.lang.Throwable t)
           
 
Methods inherited from class org.ocpsoft.logging.Logger
debug, debug, debug, debug, debug, error, error, error, error, error, format, getLogger, getLogger, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDKLogAdapter

public JDKLogAdapter(java.lang.String name)
Method Detail

log

protected void log(Logger.Level level,
                   java.lang.String msg,
                   java.lang.Throwable t)
Specified by:
log in class Logger

isEnabled

protected boolean isEnabled(Logger.Level level)
Specified by:
isEnabled in class Logger

getJdkLogLevel

protected final java.util.logging.Level getJdkLogLevel(Logger.Level level)
Translates the log level to JDK Level class.


logging-api 1.0.1.Final

Copyright © 2012 OCPsoft. All Rights Reserved.