ch.qos.logback.core.rolling.helper
Class FileNamePattern
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.rolling.helper.FileNamePattern
- All Implemented Interfaces:
- ContextAware
public class FileNamePattern
- extends ContextAwareBase
After parsing file name patterns, given a number or a date, instances of this
class can be used to compute a file name according to the file name pattern
and the given integer or date.
- Author:
- Ceki Gülcü
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext |
FileNamePattern
public FileNamePattern(String patternArg,
Context contextArg)
toString
public String toString()
- Overrides:
toString
in class Object
getPrimaryDateTokenConverter
public DateTokenConverter getPrimaryDateTokenConverter()
getIntegerTokenConverter
public IntegerTokenConverter getIntegerTokenConverter()
convertMultipleArguments
public String convertMultipleArguments(Object... objectList)
convert
public String convert(Object o)
convertInt
public String convertInt(int i)
setPattern
public void setPattern(String pattern)
getPattern
public String getPattern()
toRegex
public String toRegex(Date date)
- Given date, convert this instance to a regular expression.
toRegex
public String toRegex()
- Given date, convert this instance to a regular expression
Copyright © 2005-2013 QOS.ch. All Rights Reserved.