com.taobao.metamorphosis.utils.log
类 MetaqDailyRollingFileAppender

java.lang.Object
  继承者 org.apache.log4j.AppenderSkeleton
      继承者 org.apache.log4j.WriterAppender
          继承者 org.apache.log4j.FileAppender
              继承者 org.apache.log4j.DailyRollingFileAppender
                  继承者 com.taobao.metamorphosis.utils.log.MetaqDailyRollingFileAppender
所有已实现的接口:
org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler

public class MetaqDailyRollingFileAppender
extends org.apache.log4j.DailyRollingFileAppender

Custom daily rolling file appender for metaq,it keeps an bounded queue in memory to hold latest logs.

作者:
dennis

字段摘要
 
从类 org.apache.log4j.FileAppender 继承的字段
bufferedIO, bufferSize, fileAppend, fileName
 
从类 org.apache.log4j.WriterAppender 继承的字段
encoding, immediateFlush, qw
 
从类 org.apache.log4j.AppenderSkeleton 继承的字段
closed, errorHandler, headFilter, layout, name, tailFilter, threshold
 
构造方法摘要
MetaqDailyRollingFileAppender()
           
 
方法摘要
 void activateOptions()
           
 int getLogBufferSize()
           
 List<String> getLogs(long timestamp)
           
 void setLogBufferSize(int logBufferSize)
           
protected  void subAppend(org.apache.log4j.spi.LoggingEvent event)
           
 
从类 org.apache.log4j.DailyRollingFileAppender 继承的方法
getDatePattern, setDatePattern
 
从类 org.apache.log4j.FileAppender 继承的方法
closeFile, getAppend, getBufferedIO, getBufferSize, getFile, reset, setAppend, setBufferedIO, setBufferSize, setFile, setFile, setQWForFiles
 
从类 org.apache.log4j.WriterAppender 继承的方法
append, checkEntryConditions, close, closeWriter, createWriter, getEncoding, getImmediateFlush, requiresLayout, setEncoding, setErrorHandler, setImmediateFlush, setWriter, writeFooter, writeHeader
 
从类 org.apache.log4j.AppenderSkeleton 继承的方法
addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setLayout, setName, setThreshold
 
从类 java.lang.Object 继承的方法
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

MetaqDailyRollingFileAppender

public MetaqDailyRollingFileAppender()
方法详细信息

getLogs

public List<String> getLogs(long timestamp)

setLogBufferSize

public void setLogBufferSize(int logBufferSize)

getLogBufferSize

public int getLogBufferSize()

activateOptions

public void activateOptions()
指定者:
接口 org.apache.log4j.spi.OptionHandler 中的 activateOptions
覆盖:
org.apache.log4j.DailyRollingFileAppender 中的 activateOptions

subAppend

protected void subAppend(org.apache.log4j.spi.LoggingEvent event)
覆盖:
org.apache.log4j.DailyRollingFileAppender 中的 subAppend


Copyright © 2010–2013. All rights reserved.