public abstract class RollingPolicyBase extends Object implements RollingPolicy, org.apache.log4j.spi.OptionHandler
Modifier and Type | Field and Description |
---|---|
protected String |
activeFileName
Active file name may be null.
|
Constructor and Description |
---|
RollingPolicyBase() |
Modifier and Type | Method and Description |
---|---|
void |
activateOptions() |
protected void |
formatFileName(Object obj,
StringBuffer buf)
Format file name.
|
String |
getActiveFileName()
Deprecated.
Duplicates FileAppender.file and should be removed
|
protected org.apache.log4j.pattern.PatternConverter |
getDatePatternConverter() |
String |
getFileNamePattern()
Get file name pattern.
|
protected org.apache.log4j.pattern.PatternConverter |
getIntegerPatternConverter() |
protected void |
parseFileNamePattern()
Parse file name pattern.
|
void |
setActiveFileName(String afn)
Deprecated.
Duplicates FileAppender.file and should be removed
|
void |
setFileNamePattern(String fnp)
Set file name pattern.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initialize, rollover
protected String activeFileName
public void activateOptions()
activateOptions
in interface org.apache.log4j.spi.OptionHandler
public void setFileNamePattern(String fnp)
fnp
- file name pattern.public String getFileNamePattern()
public void setActiveFileName(String afn)
afn
- active file name.public String getActiveFileName()
protected final void parseFileNamePattern()
protected final void formatFileName(Object obj, StringBuffer buf)
obj
- object to be evaluted in formatting, may not be null.buf
- string buffer to which formatted file name is appended, may not be null.protected final org.apache.log4j.pattern.PatternConverter getDatePatternConverter()
protected final org.apache.log4j.pattern.PatternConverter getIntegerPatternConverter()
Copyright © 2013 The Apache Software Foundation. Licensed under the Apache License, Version 2.0
Apache Extras for Apache log4j, Apache log4j and Apache are trademarks of the Apache Software Foundation.