|
||||||||||
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(Object[] objects,
StringBuilder buf)
Format file name. |
protected void |
formatFileName(Object obj,
StringBuilder buf)
Format file name. |
long |
getNextTime(long current,
int increment,
boolean modulus)
Return 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.
protected final void formatFileName(Object obj, StringBuilder buf)
obj
- object to be evaluated in formatting, may not be null.buf
- string buffer to which formatted file name is appended, may not be null.protected final void formatFileName(Object[] objects, StringBuilder buf)
objects
- objects to be evaluated in formatting, may not be null.buf
- string buffer to which formatted file name is appended, may not be null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |