Top Fields Constructors Methods
ch.qos.logback.core.pattern

public abstract Class DynamicConverter<E>

extends FormattingConverter<E>
implements LifeCycle, ContextAware
Class Inheritance
All Implemented Interfaces
ch.qos.logback.core.spi.ContextAware, ch.qos.logback.core.spi.LifeCycle
Known Direct Subclasses
ch.qos.logback.core.rolling.helper.DateTokenConverter, ch.qos.logback.core.rolling.helper.IntegerTokenConverter, ch.qos.logback.core.pattern.CompositeConverter
Imports
java.util.List, ch.qos.logback.core.Context, ch.qos.logback.core.spi.ContextAware, .ContextAwareBase, .LifeCycle, ch.qos.logback.core.status.Status

Field Summary

Modifier and TypeField and Description
pack-priv ContextAwareBase
private List<String>
protected boolean
started

Is this component active?

Inherited from ch.qos.logback.core.pattern.FormattingConverter:
formattingInfoINITIAL_BUF_SIZEMAX_CAPACITY

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
public void
public void
public void
public void
public Context
public String

Returns:

First option, may be null.
getFirstOption
()

Return the first option passed to this component.

protected List<String>
public boolean
public void
public void
setOptionList(List<String> optionList)

public void
start()

Implements ch.qos.logback.core.spi.LifeCycle.start.

Components that depend on options passed during configuration can override this method in order to make appropriate use of those options.
public void
Inherited from ch.qos.logback.core.pattern.FormattingConverter:
getFormattingInfosetFormattingInfowrite

Field Detail

cabback to summary
pack-priv ContextAwareBase cab
optionListback to summary
private List<String> optionList
startedback to summary
protected boolean started

Is this component active?

Constructor Detail

DynamicConverterback to summary
public DynamicConverter()

Method Detail

addErrorback to summary
public void addError(String msg)

Implements ch.qos.logback.core.spi.ContextAware.addError.

Annotations
@Override
addErrorback to summary
public void addError(String msg, Throwable ex)

Implements ch.qos.logback.core.spi.ContextAware.addError.

Annotations
@Override
addInfoback to summary
public void addInfo(String msg)

Implements ch.qos.logback.core.spi.ContextAware.addInfo.

Annotations
@Override
addInfoback to summary
public void addInfo(String msg, Throwable ex)

Implements ch.qos.logback.core.spi.ContextAware.addInfo.

Annotations
@Override
addStatusback to summary
public void addStatus(Status status)

Implements ch.qos.logback.core.spi.ContextAware.addStatus.

Annotations
@Override
addWarnback to summary
public void addWarn(String msg)

Implements ch.qos.logback.core.spi.ContextAware.addWarn.

Annotations
@Override
addWarnback to summary
public void addWarn(String msg, Throwable ex)

Implements ch.qos.logback.core.spi.ContextAware.addWarn.

Annotations
@Override
getContextback to summary
public Context getContext()

Implements ch.qos.logback.core.spi.ContextAware.getContext.

Annotations
@Override
getFirstOptionback to summary
public String getFirstOption()

Return the first option passed to this component. The returned value may be null if there are no options.

Returns:String

First option, may be null.

getOptionListback to summary
protected List<String> getOptionList()
isStartedback to summary
public boolean isStarted()

Implements ch.qos.logback.core.spi.LifeCycle.isStarted.

Annotations
@Override
setContextback to summary
public void setContext(Context context)

Implements ch.qos.logback.core.spi.ContextAware.setContext.

Annotations
@Override
setOptionListback to summary
public void setOptionList(List<String> optionList)
startback to summary
public void start()

Implements ch.qos.logback.core.spi.LifeCycle.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.

Annotations
@Override
stopback to summary
public void stop()

Implements ch.qos.logback.core.spi.LifeCycle.stop.

Annotations
@Override