public class TaskLogAppender
extends org.apache.log4j.FileAppender
构造器和说明 |
---|
TaskLogAppender() |
限定符和类型 | 方法和说明 |
---|---|
void |
activateOptions() |
void |
append(org.apache.log4j.spi.LoggingEvent event) |
void |
close() |
void |
flush() |
boolean |
getIsCleanup()
Get whether task is cleanup attempt or not.
|
String |
getTaskId()
Getter/Setter methods for log4j.
|
long |
getTotalLogFileSize() |
void |
setIsCleanup(boolean isCleanup)
Set whether the task is a cleanup attempt or not.
|
void |
setTaskId(String taskId) |
void |
setTotalLogFileSize(long logSize) |
closeFile, getAppend, getBufferedIO, getBufferSize, getFile, reset, setAppend, setBufferedIO, setBufferSize, setFile, setFile, setQWForFiles
checkEntryConditions, closeWriter, createWriter, getEncoding, getImmediateFlush, requiresLayout, setEncoding, setErrorHandler, setImmediateFlush, setWriter, subAppend, writeFooter, writeHeader
public void activateOptions()
activateOptions
在接口中 org.apache.log4j.spi.OptionHandler
activateOptions
在类中 org.apache.log4j.FileAppender
public void append(org.apache.log4j.spi.LoggingEvent event)
append
在类中 org.apache.log4j.WriterAppender
public void flush()
public void close()
close
在接口中 org.apache.log4j.Appender
close
在类中 org.apache.log4j.WriterAppender
public String getTaskId()
public void setTaskId(String taskId)
public long getTotalLogFileSize()
public void setTotalLogFileSize(long logSize)
public void setIsCleanup(boolean isCleanup)
isCleanup
- true if the task is cleanup attempt, false otherwise.public boolean getIsCleanup()
Copyright © 2009 The Apache Software Foundation