Class FileNamePattern
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.rolling.helper.FileNamePattern
- All Implemented Interfaces:
ContextAware
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 current date or integer.
-
Field Summary
FieldsFields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertInt
(int i) convertMultipleArguments
(Object... objectList) boolean
(package private) String
int
hashCode()
boolean
(package private) void
parse()
void
setPattern
(String pattern) toRegex()
Given date, convert this instance to a regular expressiontoRegexForFixedDate
(Date date) Given date, convert this instance to a regular expression.toString()
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
Field Details
-
CONVERTER_MAP
-
pattern
String pattern -
headTokenConverter
-
-
Constructor Details
-
FileNamePattern
-
-
Method Details
-
parse
void parse() -
escapeRightParantesis
-
toString
-
hashCode
public int hashCode() -
equals
-
getPrimaryDateTokenConverter
-
getIntegerTokenConverter
-
hasIntegerTokenCOnverter
public boolean hasIntegerTokenCOnverter() -
convertMultipleArguments
-
convert
-
convertInt
-
setPattern
-
getPattern
-
toRegexForFixedDate
Given date, convert this instance to a regular expression. Used to compute sub-regex when the pattern has both %d and %i, and the date is known. -
toRegex
Given date, convert this instance to a regular expression
-