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.
- Author:
- Ceki Gülcü
-
Field Summary
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvertInt
(int i) convertMultipleArguments
(Object... objectList) boolean
int
hashCode()
boolean
void
setPattern
(String pattern) toRegex()
Given date, convert this instance to a regular expressiontoRegexForFixedDate
(Instant instant) Given date, convert this instance to a regular expression.toRegexForFixedDate
(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
-
Constructor Details
-
FileNamePattern
-
-
Method Details
-
toString
-
hashCode
-
equals
-
getPrimaryDateTokenConverter
-
getIntegerTokenConverter
-
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.- Parameters:
date
- - known date
-
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.- Parameters:
instant
- - known instant
-
toRegex
Given date, convert this instance to a regular expression
-