[logback-dev] custom conversion
Ceki Gülcü
ceki at qos.ch
Wed Jan 18 10:59:18 CET 2017
Hi Sara,
If you need declare conversions w1 and w2, you would write
<conversionRule conversionWord="w1" converterClass="org.myproject.W1"/>
<conversionRule conversionWord="w2" converterClass="org.myproject.W2"/>
For a real example, please see
https://github.com/spring-projects/spring-boot/blob/master/spring-boot/src/main/resources/org/springframework/boot/logging/logback/defaults.xml
HTH,
--
Ceki
On 1/18/2017 8:51, Sara J wrote:
> According to the following logback documention:
>
> *<conversionRuleconversionWord="nanos"
> converterClass="chapters.layouts.MySampleConverter"/>*
>
> should i transfer list of conversion words instead of one word as the
> example above?
>
> if so, what is the format to do it?
> should I read it from class/file etc?
>
> thanks,
> Sara.
>
>
> _______________________________________________
> logback-dev mailing list
> logback-dev at qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-dev
>
More information about the logback-dev
mailing list