public class ThreadAppender
extends org.apache.log4j.FileAppender
Modifier and Type | Class and Description |
---|---|
class |
ThreadAppender.AsyncAppenderWrapper
The Class AsyncAppenderWrapper.
|
Modifier and Type | Field and Description |
---|---|
static String |
REQUEST_ID_KEY_PREFIX |
Constructor and Description |
---|
ThreadAppender()
The default constructor.
|
ThreadAppender(org.apache.log4j.Layout layout,
String filename)
Instantiate a FileAppender and open the file designated by filename.
|
ThreadAppender(org.apache.log4j.Layout layout,
String filename,
boolean append)
Instantiate a FileAppender and open the file designated by filename.
|
ThreadAppender(org.apache.log4j.Layout layout,
String filename,
boolean append,
boolean bufferedIO,
int bufferSize)
Instantiate a FileAppender and open the file designated by filename.
|
Modifier and Type | Method and Description |
---|---|
void |
subAppend(org.apache.log4j.spi.LoggingEvent event) |
activateOptions, closeFile, getAppend, getBufferedIO, getBufferSize, getFile, reset, setAppend, setBufferedIO, setBufferSize, setFile, setFile, setQWForFiles
append, checkEntryConditions, close, closeWriter, createWriter, getEncoding, getImmediateFlush, requiresLayout, setEncoding, setErrorHandler, setImmediateFlush, setWriter, shouldFlush, writeFooter, writeHeader
public static final String REQUEST_ID_KEY_PREFIX
public ThreadAppender()
public ThreadAppender(org.apache.log4j.Layout layout, String filename) throws Exception
layout
- the layoutfilename
- the filenameException
public ThreadAppender(org.apache.log4j.Layout layout, String filename, boolean append) throws Exception
layout
- the layoutfilename
- the filenameappend
- the appendException
public ThreadAppender(org.apache.log4j.Layout layout, String filename, boolean append, boolean bufferedIO, int bufferSize) throws Exception
layout
- the layoutfilename
- the filenameappend
- the appendbufferedIO
- the buffered IObufferSize
- the buffer sizeException
Copyright © 2010-2020 Toolsverse. All Rights Reserved.