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:
ClassicConverter
,CompositeConverter
,DateTokenConverter
,IntegerTokenConverter
@Deprecated(since="2022-01-27")
public abstract class DynamicConverter<E>
extends FormattingConverter<E>
implements LifeCycle, ContextAware
Deprecated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.void
Deprecated.void
Deprecated.void
Deprecated.void
Deprecated.void
Deprecated.void
Deprecated.Deprecated.Deprecated.Return the first option passed to this component.boolean
Deprecated.void
setContext
(Context context) Deprecated.void
setOptionList
(List<String> optionList) Deprecated.void
start()
Deprecated.Components that depend on options passed during configuration can override this method in order to make appropriate use of those options.void
stop()
Deprecated.Methods inherited from class ch.qos.logback.core.pattern.FormattingConverter
getFormattingInfo, setFormattingInfo, write
-
Constructor Details
-
DynamicConverter
public DynamicConverter()Deprecated.
-
-
Method Details
-
start
public void start()Deprecated.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
public void stop()Deprecated. -
isStarted
public boolean isStarted()Deprecated. -
setOptionList
Deprecated. -
getFirstOption
Deprecated.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.
-
setContext
Deprecated.- Specified by:
setContext
in interfaceContextAware
-
getContext
Deprecated.- Specified by:
getContext
in interfaceContextAware
-
addStatus
Deprecated.- Specified by:
addStatus
in interfaceContextAware
-
addInfo
Deprecated.- Specified by:
addInfo
in interfaceContextAware
-
addInfo
Deprecated.- Specified by:
addInfo
in interfaceContextAware
-
addWarn
Deprecated.- Specified by:
addWarn
in interfaceContextAware
-
addWarn
Deprecated.- Specified by:
addWarn
in interfaceContextAware
-
addError
Deprecated.- Specified by:
addError
in interfaceContextAware
-
addError
Deprecated.- Specified by:
addError
in interfaceContextAware
-