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 Constructor Description DynamicConverter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addError(java.lang.String msg)
Deprecated.void
addError(java.lang.String msg, java.lang.Throwable ex)
Deprecated.void
addInfo(java.lang.String msg)
Deprecated.void
addInfo(java.lang.String msg, java.lang.Throwable ex)
Deprecated.void
addStatus(Status status)
Deprecated.void
addWarn(java.lang.String msg)
Deprecated.void
addWarn(java.lang.String msg, java.lang.Throwable ex)
Deprecated.Context
getContext()
Deprecated.java.lang.String
getFirstOption()
Deprecated.Return the first option passed to this component.boolean
isStarted()
Deprecated.void
setContext(Context context)
Deprecated.void
setOptionList(java.util.List<java.lang.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
-
-
-
-
Method Detail
-
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.
-
setOptionList
public void setOptionList(java.util.List<java.lang.String> optionList)
Deprecated.
-
getFirstOption
public java.lang.String 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
public void setContext(Context context)
Deprecated.- Specified by:
setContext
in interfaceContextAware
-
getContext
public Context getContext()
Deprecated.- Specified by:
getContext
in interfaceContextAware
-
addStatus
public void addStatus(Status status)
Deprecated.- Specified by:
addStatus
in interfaceContextAware
-
addInfo
public void addInfo(java.lang.String msg)
Deprecated.- Specified by:
addInfo
in interfaceContextAware
-
addInfo
public void addInfo(java.lang.String msg, java.lang.Throwable ex)
Deprecated.- Specified by:
addInfo
in interfaceContextAware
-
addWarn
public void addWarn(java.lang.String msg)
Deprecated.- Specified by:
addWarn
in interfaceContextAware
-
addWarn
public void addWarn(java.lang.String msg, java.lang.Throwable ex)
Deprecated.- Specified by:
addWarn
in interfaceContextAware
-
addError
public void addError(java.lang.String msg)
Deprecated.- Specified by:
addError
in interfaceContextAware
-
addError
public void addError(java.lang.String msg, java.lang.Throwable ex)
Deprecated.- Specified by:
addError
in interfaceContextAware
-
-