|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.logging.log4j.core.appender.rolling.PatternProcessor
public class PatternProcessor
Parse the rollover pattern.
Constructor Summary | |
---|---|
PatternProcessor(String pattern)
Constructor. |
Method Summary | |
---|---|
protected void |
formatFileName(StringBuilder buf,
Object... objects)
Format file name. |
void |
formatFileName(StringBuilder buf,
Object obj)
Format file name. |
long |
getNextTime(long current,
int increment,
boolean modulus)
Returns the next potential rollover time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PatternProcessor(String pattern)
pattern
- The file pattern.Method Detail |
---|
public long getNextTime(long current, int increment, boolean modulus)
current
- The current time.increment
- The increment to the next time.modulus
- If true the time will be rounded to occur on a boundary aligned with the increment.
public final void formatFileName(StringBuilder buf, Object obj)
buf
- string buffer to which formatted file name is appended, may not be null.obj
- object to be evaluated in formatting, may not be null.protected final void formatFileName(StringBuilder buf, Object... objects)
buf
- string buffer to which formatted file name is appended, may not be null.objects
- objects to be evaluated in formatting, may not be null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2013 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.