Package ch.qos.logback.classic.pattern
Class KeyValuePairConverter
java.lang.Object
ch.qos.logback.core.pattern.Converter<E>
ch.qos.logback.core.pattern.FormattingConverter<E>
ch.qos.logback.core.pattern.DynamicConverter<ILoggingEvent>
ch.qos.logback.classic.pattern.ClassicConverter
ch.qos.logback.classic.pattern.KeyValuePairConverter
- All Implemented Interfaces:
ContextAware
,LifeCycle
Convert the contents of
KeyValuePair
list to a String.
Assuming the list contains the list {k1, v1}, {k2, v2}, the String output
will be "k1=v1 k2=v2", without the quotes.- Since:
- 1.3.0
- Author:
- Ceki Gülcü
-
Field Summary
Fields inherited from class ch.qos.logback.core.pattern.DynamicConverter
started
-
Constructor Summary
-
Method Summary
Methods inherited from class ch.qos.logback.core.pattern.DynamicConverter
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getFirstOption, getOptionList, isStarted, setContext, setOptionList, stop
Methods inherited from class ch.qos.logback.core.pattern.FormattingConverter
getFormattingInfo, setFormattingInfo, write
-
Constructor Details
-
KeyValuePairConverter
public KeyValuePairConverter()
-
-
Method Details
-
start
public void start()- Specified by:
start
in interfaceLifeCycle
- Overrides:
start
in classDynamicConverter<ILoggingEvent>
-
convert
- Specified by:
convert
in classConverter<ILoggingEvent>
-