You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by gmh <go...@gmail.com> on 2015/04/17 16:24:39 UTC
Camel logging with log4j2
HI,
I am currently migrating from log4j to log4j2 as our logging solution.
Prior to the migration, we used the following instructions:
http://camel.apache.org/how-do-i-use-log4j.html
However for log4j2 it is required that a log4j2.xml be used.
I have also looked at this article and tried Matt's configurations but it
did not work:
http://java.dzone.com/articles/developing-services-apache-2
Can anyone show me the dependencies I need and the configurations?
Thanks,
Gordon
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-logging-with-log4j2-tp5765960.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel logging with log4j2
Posted by Thiago Kronig <th...@gmail.com>.
Camel uses internally SLF4J as its logging API. So, assuming you are using
maven, just use the following:
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>2.2</version>
<scope>runtime</scope>
</dependency>
--
Thiago Kronig
On Fri, Apr 17, 2015 at 11:35 AM gmh <go...@gmail.com> wrote:
> HI,
> I am currently migrating from log4j to log4j2 as our logging solution.
> Prior to the migration, we used the following instructions:
> http://camel.apache.org/how-do-i-use-log4j.html
> However for log4j2 it is required that a log4j2.xml be used.
> I have also looked at this article and tried Matt's configurations but it
> did not work:
> http://java.dzone.com/articles/developing-services-apache-2
> Can anyone show me the dependencies I need and the configurations?
> Thanks,
> Gordon
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-logging-with-log4j2-tp5765960.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>