org.mortbay.log
Class StdErrLog

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

public class StdErrLog
extends Object
implements Logger

Logging. This class provides a static logging interface. If an instance of the org.slf4j.Logger class is found on the classpath, the static log methods are directed to a slf4j logger for "org.mortbay.log". Otherwise the logs are directed to stderr. If the system property VERBOSE is set, then ignored exceptions are logged in detail. If the system property DEBUG is set, then debug logs are printed if stderr is being used.


Field Summary
private static boolean debug
           
private  String name
           
 
Constructor Summary
StdErrLog()
           
StdErrLog(String name)
           
 
Method Summary
 void debug(String msg, Object arg0, Object arg1)
           
 void debug(String msg, Throwable th)
           
private  String format(String msg, Object arg0, Object arg1)
           
 Logger getLogger(String name)
           
 void info(String msg, Object arg0, Object arg1)
           
 boolean isDebugEnabled()
           
 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
 

Field Detail

debug

private static boolean debug

name

private String name
Constructor Detail

StdErrLog

StdErrLog()

StdErrLog

StdErrLog(String name)
Method Detail

isDebugEnabled

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

info

public void info(String msg,
                 Object arg0,
                 Object arg1)
Specified by:
info 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

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

format

private String format(String msg,
                      Object arg0,
                      Object arg1)

getLogger

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

toString

public String toString()
Overrides:
toString in class Object