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 voidaddError(java.lang.String msg)Deprecated.voidaddError(java.lang.String msg, java.lang.Throwable ex)Deprecated.voidaddInfo(java.lang.String msg)Deprecated.voidaddInfo(java.lang.String msg, java.lang.Throwable ex)Deprecated.voidaddStatus(Status status)Deprecated.voidaddWarn(java.lang.String msg)Deprecated.voidaddWarn(java.lang.String msg, java.lang.Throwable ex)Deprecated.ContextgetContext()Deprecated.java.lang.StringgetFirstOption()Deprecated.Return the first option passed to this component.booleanisStarted()Deprecated.voidsetContext(Context context)Deprecated.voidsetOptionList(java.util.List<java.lang.String> optionList)Deprecated.voidstart()Deprecated.Components that depend on options passed during configuration can override this method in order to make appropriate use of those options.voidstop()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:
setContextin interfaceContextAware
-
getContext
public Context getContext()
Deprecated.- Specified by:
getContextin interfaceContextAware
-
addStatus
public void addStatus(Status status)
Deprecated.- Specified by:
addStatusin interfaceContextAware
-
addInfo
public void addInfo(java.lang.String msg)
Deprecated.- Specified by:
addInfoin interfaceContextAware
-
addInfo
public void addInfo(java.lang.String msg, java.lang.Throwable ex)Deprecated.- Specified by:
addInfoin interfaceContextAware
-
addWarn
public void addWarn(java.lang.String msg)
Deprecated.- Specified by:
addWarnin interfaceContextAware
-
addWarn
public void addWarn(java.lang.String msg, java.lang.Throwable ex)Deprecated.- Specified by:
addWarnin interfaceContextAware
-
addError
public void addError(java.lang.String msg)
Deprecated.- Specified by:
addErrorin interfaceContextAware
-
addError
public void addError(java.lang.String msg, java.lang.Throwable ex)Deprecated.- Specified by:
addErrorin interfaceContextAware
-
-