[logback-user] Log4j to Logback migration, logback.xml question

Ceki Gulcu ceki at qos.ch
Tue Feb 8 16:46:25 CET 2011


On 08.02.2011 14:32, Fabio Erculiani wrote:
> Moreover,
> can I assume that the output pattern I used in log4j will work in logback too?
> For example, in<appender>  I now have:
> <encoder>
> 	<pattern>%d{dd-MM-yy HH:mm:ss,SSS}|%5.5p|%m%n</pattern>
> </encoder>
>
> Which comes from log4j.xml I previously had. This question might be
> good for the Logback FAQ, also.
>
> Regards,

Yes, in principle, log4j conversion patterns work in logback as is. Of 
course, logback are much more powerful. See
   http://logback.qos.ch/manual/layouts.html#conversionWord
for more details.
HTH,
--
Ceki



More information about the Logback-user mailing list