public class Log4jRollingFileAppender
extends org.apache.log4j.RollingFileAppender
RollingFileAppender
with added support for grid node IDs.Constructor and Description |
---|
Log4jRollingFileAppender()
Default constructor (does not do anything).
|
Log4jRollingFileAppender(org.apache.log4j.Layout layout,
String filename)
Instantiate a FileAppender with given parameters.
|
Log4jRollingFileAppender(org.apache.log4j.Layout layout,
String filename,
boolean append)
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.
|
getMaxBackupIndex, getMaximumFileSize, rollOver, setMaxBackupIndex, setMaxFileSize, setMaximumFileSize, setQWForFiles, subAppend
activateOptions, closeFile, getAppend, getBufferedIO, getBufferSize, getFile, reset, setAppend, setBufferedIO, setBufferSize, setFile
append, checkEntryConditions, close, closeWriter, createWriter, getEncoding, getImmediateFlush, requiresLayout, setEncoding, setErrorHandler, setImmediateFlush, setWriter, shouldFlush, writeFooter, writeHeader
public Log4jRollingFileAppender()
public Log4jRollingFileAppender(org.apache.log4j.Layout layout, String filename) throws IOException
layout
- Layout.filename
- File name.IOException
- If failed.public Log4jRollingFileAppender(org.apache.log4j.Layout layout, String filename, boolean append) throws IOException
layout
- Layout.filename
- File name.append
- Append flag.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.RollingFileAppender
IOException
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024