public class Log4JFileAppender
extends org.apache.log4j.FileAppender
FileAppender
with added support for grid node IDs.Constructor and Description |
---|
Log4JFileAppender()
Default constructor (does not do anything).
|
Log4JFileAppender(org.apache.log4j.Layout layout,
String filename)
Instantiate a FileAppender with given parameters.
|
Log4JFileAppender(org.apache.log4j.Layout layout,
String filename,
boolean append)
Instantiate a FileAppender with given parameters.
|
Log4JFileAppender(org.apache.log4j.Layout layout,
String filename,
boolean append,
boolean bufIO,
int bufSize)
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, closeFile, getAppend, getBufferedIO, getBufferSize, getFile, reset, setAppend, setBufferedIO, setBufferSize, setFile, setQWForFiles
append, checkEntryConditions, close, closeWriter, createWriter, getEncoding, getImmediateFlush, requiresLayout, setEncoding, setErrorHandler, setImmediateFlush, setWriter, shouldFlush, subAppend, writeFooter, writeHeader
public Log4JFileAppender()
public Log4JFileAppender(org.apache.log4j.Layout layout, String filename) throws IOException
layout
- Layout.filename
- File name.IOException
- If failed.public Log4JFileAppender(org.apache.log4j.Layout layout, String filename, boolean append) throws IOException
layout
- Layout.filename
- File name.append
- Append flag.IOException
- If failed.public Log4JFileAppender(org.apache.log4j.Layout layout, String filename, boolean append, boolean bufIO, int bufSize) throws IOException
layout
- Layout.filename
- File name.append
- Append flag.bufIO
- Buffered IO flag.bufSize
- Buffer size.IOException
- If failed.public void setFile(String fileName, boolean fileAppend, boolean bufIO, int bufSize) throws IOException
setFile
in class org.apache.log4j.FileAppender
IOException
public void updateFilePath(IgniteClosure<String,String> filePathClos)
filePathClos
- Closure that generates actual file path.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024