Class MagentaCompositeConverter<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>
-
- ch.qos.logback.core.pattern.CompositeConverter<E>
-
- ch.qos.logback.core.pattern.color.ForegroundCompositeConverterBase<E>
-
- ch.qos.logback.core.pattern.color.MagentaCompositeConverter<E>
-
- Type Parameters:
E
-
- All Implemented Interfaces:
ContextAware
,LifeCycle
public class MagentaCompositeConverter<E> extends ForegroundCompositeConverterBase<E>
Encloses a given set of converter output in magenta using the appropriate ANSI escape codes.- Since:
- 1.0.5
- Author:
- Ceki Gülcü
-
-
Field Summary
-
Fields inherited from class ch.qos.logback.core.pattern.DynamicConverter
started
-
-
Constructor Summary
Constructors Constructor Description MagentaCompositeConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getForegroundColorCode(E event)
Derived classes return the foreground color specific to the derived class instance.-
Methods inherited from class ch.qos.logback.core.pattern.color.ForegroundCompositeConverterBase
transform
-
Methods inherited from class ch.qos.logback.core.pattern.CompositeConverter
convert, getChildConverter, setChildConverter, toString
-
Methods inherited from class ch.qos.logback.core.pattern.DynamicConverter
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getFirstOption, getOptionList, isStarted, setContext, setOptionList, start, stop
-
Methods inherited from class ch.qos.logback.core.pattern.FormattingConverter
getFormattingInfo, setFormattingInfo, write
-
-
-
-
Method Detail
-
getForegroundColorCode
protected java.lang.String getForegroundColorCode(E event)
Description copied from class:ForegroundCompositeConverterBase
Derived classes return the foreground color specific to the derived class instance.- Specified by:
getForegroundColorCode
in classForegroundCompositeConverterBase<E>
- Returns:
- the foreground color for this instance
-
-