org.apache.commons.logging.simple
Class DecoratedSimpleLog

java.lang.Object
  extended by org.apache.commons.logging.impl.SimpleLog
      extended by org.apache.commons.logging.simple.DecoratedSimpleLog
All Implemented Interfaces:
Serializable, Log

public class DecoratedSimpleLog
extends SimpleLog

Decorated instance of SimpleLog to expose internal state and support buffered output.

See Also:
Serialized Form

Field Summary
protected  ArrayList cache
           
 
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
 
Constructor Summary
DecoratedSimpleLog(String name)
           
 
Method Summary
 void clearCache()
           
 List getCache()
           
 String getDateTimeFormat()
           
 DateFormat getDateTimeFormatter()
           
 String getLogName()
           
 boolean getShowDateTime()
           
 boolean getShowShortName()
           
protected  void log(int type, Object message, Throwable t)
           
 
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
 

Field Detail

cache

protected ArrayList cache
Constructor Detail

DecoratedSimpleLog

public DecoratedSimpleLog(String name)
Method Detail

getDateTimeFormatter

public DateFormat getDateTimeFormatter()

getDateTimeFormat

public String getDateTimeFormat()

getLogName

public String getLogName()

getShowDateTime

public boolean getShowDateTime()

getShowShortName

public boolean getShowShortName()

log

protected void log(int type,
                   Object message,
                   Throwable t)
Overrides:
log in class SimpleLog

clearCache

public void clearCache()

getCache

public List getCache()


Copyright © 2001-2011 Apache Software Foundation. All Rights Reserved.