org.mortbay.log
Class StdErrLog
java.lang.Object
org.mortbay.log.StdErrLog
- All Implemented Interfaces:
- Logger
public class StdErrLog
- extends Object
- implements Logger
StdErr Logging.
This implementation of the Logging facade sends all logs to StdErr with minimal formatting.
If the system property DEBUG is set, then debug logs are printed if stderr is being used.
StdErrLog
public StdErrLog()
StdErrLog
public StdErrLog(String name)
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
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
getLogger
public Logger getLogger(String name)
- Specified by:
getLogger
in interface Logger
toString
public String toString()
- Overrides:
toString
in class Object