public class RollingFileAppender
extends org.apache.log4j.RollingFileAppender
Constructor and Description |
---|
RollingFileAppender()
The default constructor simply calls its parents constructor
and mark as default appender for thread and child thread
if default appender does not exist.
|
Modifier and Type | Method and Description |
---|---|
void |
append(org.apache.log4j.spi.LoggingEvent event)
If object is current odcs log4j thread RollingFileAppender, then append message to the log.
|
static void |
popPreviousLogFile()
Set odcs log4j RollingFileAppender for thread and its next child,
which was hidden by previous calling of setNewLogFile method.
|
static void |
setNewLogFile(String logFileName)
Set odcs log4j new RollingFileAppender for thread and its next child,
previous RollingFileAppender is hidden.
|
getMaxBackupIndex, getMaximumFileSize, rollOver, setFile, setMaxBackupIndex, setMaxFileSize, setMaximumFileSize, setQWForFiles, subAppend
activateOptions, closeFile, getAppend, getBufferedIO, getBufferSize, getFile, reset, setAppend, setBufferedIO, setBufferSize, setFile
checkEntryConditions, close, closeWriter, createWriter, getEncoding, getImmediateFlush, requiresLayout, setEncoding, setErrorHandler, setImmediateFlush, setWriter, shouldFlush, writeFooter, writeHeader
public RollingFileAppender()
public static void setNewLogFile(String logFileName)
logFileName
- name of new logging file namepublic static void popPreviousLogFile()
public void append(org.apache.log4j.spi.LoggingEvent event)
append
in class org.apache.log4j.WriterAppender
WriterAppender.append(org.apache.log4j.spi.LoggingEvent)
Copyright © 2013. All Rights Reserved.