public class Log4JDailyRollingFileAppender
extends org.apache.log4j.DailyRollingFileAppender
DailyRollingFileAppender
with added support for grid node IDs.Constructor and Description |
---|
Log4JDailyRollingFileAppender()
Default constructor (does not do anything).
|
Log4JDailyRollingFileAppender(org.apache.log4j.Layout layout,
String filename,
String datePtrn)
Instantiate a FileAppender with given parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
setFile(String fileName,
boolean fileAppend,
boolean bufIO,
int bufSize) |
void |
updateFilePath(IgniteClosure<String,String> filePathClos)
Sets closure that later evaluate file path.
|
activateOptions, getDatePattern, setDatePattern, subAppend
closeFile, getAppend, getBufferedIO, getBufferSize, getFile, reset, setAppend, setBufferedIO, setBufferSize, setFile, setQWForFiles
append, checkEntryConditions, close, closeWriter, createWriter, getEncoding, getImmediateFlush, requiresLayout, setEncoding, setErrorHandler, setImmediateFlush, setWriter, shouldFlush, writeFooter, writeHeader
public Log4JDailyRollingFileAppender()
public Log4JDailyRollingFileAppender(org.apache.log4j.Layout layout, String filename, String datePtrn) throws IOException
layout
- Layout.filename
- File name.datePtrn
- Date pattern.IOException
- If failed.public void updateFilePath(IgniteClosure<String,String> filePathClos)
filePathClos
- Closure that generates actual file path.public void setFile(String fileName, boolean fileAppend, boolean bufIO, int bufSize) throws IOException
setFile
in class org.apache.log4j.FileAppender
IOException
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024