org.mortbay.log
Class StdErrLog

java.lang.Object
  extended by org.mortbay.log.StdErrLog
All Implemented Interfaces:
org.mortbay.log.Logger

public class StdErrLog
extends Object
implements org.mortbay.log.Logger

A modified version of the original Jetty logger which treats info level the same as debug level. This is merely meant as a cosmetic tweak to reduce the log noise from Jetty on the console during our tests.

Version:
$Id: StdErrLog.java 707910 2008-10-25 22:05:19Z bentmann $
Author:
Benjamin Bentmann

Constructor Summary
StdErrLog()
           
StdErrLog(String name)
           
 
Method Summary
 void debug(String msg, Object arg0, Object arg1)
           
 void debug(String msg, Throwable th)
           
 org.mortbay.log.Logger getLogger(String name)
           
 void info(String msg, Object arg0, Object arg1)
           
 boolean isDebugEnabled()
           
 boolean isHideStacks()
           
 void setDebugEnabled(boolean enabled)
           
 void setHideStacks(boolean hideStacks)
           
 String toString()
           
 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, wait, wait, wait
 

Constructor Detail

StdErrLog

public StdErrLog()

StdErrLog

public StdErrLog(String name)
Method Detail

isDebugEnabled

public boolean isDebugEnabled()
Specified by:
isDebugEnabled in interface org.mortbay.log.Logger

setDebugEnabled

public void setDebugEnabled(boolean enabled)
Specified by:
setDebugEnabled in interface org.mortbay.log.Logger

isHideStacks

public boolean isHideStacks()

setHideStacks

public void setHideStacks(boolean hideStacks)

debug

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

debug

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

info

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

warn

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

warn

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

getLogger

public org.mortbay.log.Logger getLogger(String name)
Specified by:
getLogger in interface org.mortbay.log.Logger

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.