Class IntegerTokenConverter
- java.lang.Object
-
- ch.qos.logback.core.pattern.Converter<E>
-
- ch.qos.logback.core.pattern.FormattingConverter<E>
-
- ch.qos.logback.core.pattern.DynamicConverter<java.lang.Object>
-
- ch.qos.logback.core.rolling.helper.IntegerTokenConverter
-
- All Implemented Interfaces:
MonoTypedConverter,ContextAware,LifeCycle
public class IntegerTokenConverter extends DynamicConverter<java.lang.Object> implements MonoTypedConverter
When asked to convert an integer,IntegerTokenConverterthe string value of that integer.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONVERTER_KEY
-
Constructor Summary
Constructors Constructor Description IntegerTokenConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringconvert(int i)java.lang.Stringconvert(java.lang.Object o)The convert method is responsible for extracting data from the event and storing it for later use by the write method.booleanisApplicable(java.lang.Object o)-
Methods inherited from class ch.qos.logback.core.pattern.DynamicConverter
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getFirstOption, isStarted, setContext, setOptionList, start, stop
-
Methods inherited from class ch.qos.logback.core.pattern.FormattingConverter
getFormattingInfo, setFormattingInfo, write
-
-
-
-
Field Detail
-
CONVERTER_KEY
public static final java.lang.String CONVERTER_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
convert
public java.lang.String convert(int i)
-
convert
public java.lang.String convert(java.lang.Object o)
Description copied from class:ConverterThe convert method is responsible for extracting data from the event and storing it for later use by the write method.
-
isApplicable
public boolean isApplicable(java.lang.Object o)
- Specified by:
isApplicablein interfaceMonoTypedConverter
-
-