org.eclipse.jetty.util.log
Class JavaUtilLog

java.lang.Object
  extended by org.eclipse.jetty.util.log.JavaUtilLog
All Implemented Interfaces:
Logger

public class JavaUtilLog
extends Object
implements Logger

Implementation of Jetty Logger based on Logger.

Honors the standard jetty system property "org.eclipse.jetty.util.log.DEBUG" to set logger into debug mode (defaults to false, set to "true" to enable)

You can also set the logger level using standard java.util.logging configuration against the name "org.eclipse.jetty.util.log".


Constructor Summary
JavaUtilLog()
           
JavaUtilLog(String name)
           
 
Method Summary
 void debug(String msg)
           
 void debug(String msg, Object arg0, Object arg1)
           
 void debug(String msg, Throwable th)
           
 Logger getLogger(String name)
           
 String getName()
           
 void info(String msg)
           
 void info(String msg, Object arg0, Object arg1)
           
 boolean isDebugEnabled()
           
 void setDebugEnabled(boolean enabled)
          Mutator used to turn debug on programatically.
 void warn(String msg)
           
 void warn(String msg, Object arg0, Object arg1)
           
 void warn(String msg, Throwable th)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaUtilLog

public JavaUtilLog()

JavaUtilLog

public JavaUtilLog(String name)
Method Detail

getName

public String getName()
Specified by:
getName in interface Logger

debug

public void debug(String msg)
Specified by:
debug in interface Logger

debug

public void debug(String msg,
                  Throwable th)
Specified by:
debug in interface Logger

debug

public void debug(String msg,
                  Object arg0,
                  Object arg1)
Specified by:
debug in interface Logger

getLogger

public Logger getLogger(String name)
Specified by:
getLogger in interface Logger

info

public void info(String msg)
Specified by:
info in interface Logger

info

public void info(String msg,
                 Object arg0,
                 Object arg1)
Specified by:
info in interface Logger

isDebugEnabled

public boolean isDebugEnabled()
Specified by:
isDebugEnabled in interface Logger

setDebugEnabled

public void setDebugEnabled(boolean enabled)
Description copied from interface: Logger
Mutator used to turn debug on programatically. Implementations operation in which case an appropriate warning message shall be generated.

Specified by:
setDebugEnabled in interface Logger

warn

public void warn(String msg)
Specified by:
warn in interface Logger

warn

public void warn(String msg,
                 Object arg0,
                 Object arg1)
Specified by:
warn in interface Logger

warn

public void warn(String msg,
                 Throwable th)
Specified by:
warn in interface Logger


Copyright © 1995-2009 Mort Bay Consulting. All Rights Reserved.