Package ch.qos.logback.core.pattern
Class DynamicConverter<E>
java.lang.Object
ch.qos.logback.core.pattern.Converter<E>
ch.qos.logback.core.pattern.FormattingConverter<E>
ch.qos.logback.core.pattern.DynamicConverter<E>
- All Implemented Interfaces:
ContextAware,LifeCycle
- Direct Known Subclasses:
AccessConverter,ClassicConverter,CompositeConverter,DateTokenConverter,IntegerTokenConverter
public abstract class DynamicConverter<E>
extends FormattingConverter<E>
implements LifeCycle, ContextAware
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidReturn the first option passed to this component.booleanvoidsetContext(Context context) voidsetOptionList(List<String> optionList) voidstart()Components that depend on options passed during configuration can override this method in order to make appropriate use of those options.voidstop()Methods inherited from class ch.qos.logback.core.pattern.FormattingConverter
getFormattingInfo, setFormattingInfo, write
-
Field Details
-
started
Is this component active?
-
-
Constructor Details
-
DynamicConverter
public DynamicConverter()
-
-
Method Details
-
start
Components that depend on options passed during configuration can override this method in order to make appropriate use of those options. For simpler components, the trivial implementation found in this abstract class will be sufficient. -
stop
-
isStarted
-
setOptionList
-
getFirstOption
Return the first option passed to this component. The returned value may be null if there are no options.- Returns:
- First option, may be null.
-
getOptionList
-
setContext
- Specified by:
setContextin interfaceContextAware
-
getContext
- Specified by:
getContextin interfaceContextAware
-
addStatus
- Specified by:
addStatusin interfaceContextAware
-
addInfo
- Specified by:
addInfoin interfaceContextAware
-
addInfo
- Specified by:
addInfoin interfaceContextAware
-
addWarn
- Specified by:
addWarnin interfaceContextAware
-
addWarn
- Specified by:
addWarnin interfaceContextAware
-
addError
- Specified by:
addErrorin interfaceContextAware
-
addError
- Specified by:
addErrorin interfaceContextAware
-