net.siefkes.nlstego.util
Class VerySimpleLog
java.lang.Object
org.apache.commons.logging.impl.SimpleLog
net.siefkes.nlstego.util.VerySimpleLog
- All Implemented Interfaces:
- Serializable, Log
public class VerySimpleLog
- extends SimpleLog
A extensioin of SimpleLog that works
around a small bug in the superclass: it avoids printing the name and message
of throwables twice. It is also slightly more efficient by directly writing
to a PrintStream (by default, System.err)
instead of creating intermediate objects.
- Version:
- $Revision: 1.7 $, $Date: 2005/07/12 17:02:22 $, $Author: siefkes $
- Author:
- Christian Siefkes
- See Also:
- Serialized Form
| Fields inherited from class org.apache.commons.logging.impl.SimpleLog |
currentLogLevel, dateFormatter, dateTimeFormat, DEFAULT_DATE_TIME_FORMAT, LOG_LEVEL_ALL, LOG_LEVEL_DEBUG, LOG_LEVEL_ERROR, LOG_LEVEL_FATAL, LOG_LEVEL_INFO, LOG_LEVEL_OFF, LOG_LEVEL_TRACE, LOG_LEVEL_WARN, logName, showDateTime, showLogName, showShortName, simpleLogProps, systemPrefix |
| Methods inherited from class org.apache.commons.logging.impl.SimpleLog |
debug, debug, error, error, fatal, fatal, getLevel, info, info, isDebugEnabled, isErrorEnabled, isFatalEnabled, isInfoEnabled, isLevelEnabled, isTraceEnabled, isWarnEnabled, setLevel, trace, trace, warn, warn, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VerySimpleLog
public VerySimpleLog(String name)
- Construct a named instance of this Logger. All output will be printed to
System.err.
- Parameters:
name - Name of the logger to be constructed
VerySimpleLog
public VerySimpleLog(String name,
PrintStream outStream)
- Construct a named instance of this Logger.
- Parameters:
name - Name of the logger to be constructedoutStream - the stream to print output to
log
protected void log(int type,
Object message,
Throwable t)
-
- Overrides:
log in class SimpleLog
Copyright © 2003-2005 Christian Siefkes. All Rights Reserved.