public class AsynchFileAppender extends FileAppender implements com.google.common.cache.RemovalListener<String,org.apache.log4j.RollingFileAppender>
Modifier and Type | Field and Description |
---|---|
protected ReentrantReadWriteLock.ReadLock |
isAppending |
protected ReentrantReadWriteLock.WriteLock |
isClosing |
protected ReentrantReadWriteLock |
preventConcurrentAppendClose |
FILE_NAME
Constructor and Description |
---|
AsynchFileAppender() |
Modifier and Type | Method and Description |
---|---|
void |
append(String cacheKey,
org.apache.log4j.spi.LoggingEvent event) |
void |
close() |
void |
flush() |
void |
onRemoval(com.google.common.cache.RemovalNotification<String,org.apache.log4j.RollingFileAppender> notification) |
append, requiresLayout, setFilesLocation, setMaxFileSize
activateOptions, checkEntryConditions, closeWriter, createWriter, getEncoding, getImmediateFlush, reset, setEncoding, setErrorHandler, setImmediateFlush, setWriter, shouldFlush, subAppend, writeFooter, writeHeader
protected ReentrantReadWriteLock preventConcurrentAppendClose
protected ReentrantReadWriteLock.ReadLock isAppending
protected ReentrantReadWriteLock.WriteLock isClosing
public void append(String cacheKey, org.apache.log4j.spi.LoggingEvent event)
append
in class FileAppender
public void close()
close
in interface org.apache.log4j.Appender
close
in class FileAppender
public final void flush()