public class StandardLogAppender
extends org.apache.log4j.WriterAppender
This is similar to the standard log4j RollingFileAppender, but uses a more reasonable naming scheme. RollingFileAppender added the sequence number at the end of the file name, which defeated Windows' attempts to read the thing (since it uses the last extension for file associations).
Logs are stored in files with names representing date and time down to the This implementation names the logs logname.log, logname-01.log, logname-02.log, etc.
They are rolled when the size exceeds 10M.
Copyright 2006 Partner Software, Inc.
| Constructor and Description |
|---|
StandardLogAppender() |
| Modifier and Type | Method and Description |
|---|---|
void |
activateOptions() |
java.lang.String |
getFileName()
Returns the file name.
|
void |
setFileName(java.lang.String newName)
Sets the file name.
|
protected void |
subAppend(org.apache.log4j.spi.LoggingEvent event) |
append, checkEntryConditions, close, closeWriter, createWriter, getEncoding, getImmediateFlush, requiresLayout, reset, setEncoding, setErrorHandler, setImmediateFlush, setWriter, writeFooter, writeHeaderpublic void activateOptions()
activateOptions in interface org.apache.log4j.spi.OptionHandleractivateOptions in class org.apache.log4j.WriterAppenderpublic java.lang.String getFileName()
public void setFileName(java.lang.String newName)
protected void subAppend(org.apache.log4j.spi.LoggingEvent event)
subAppend in class org.apache.log4j.WriterAppender