struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Huber <gregh3...@gmail.com>
Subject Re: Upgrade to tiles 3 jcl-over-slf4j
Date Fri, 29 Jan 2016 16:04:18 GMT
Well, I currently log with commons, but to get struts logging working I
have had to upgrade to v2 and use the log4j2.xml file.

Also a good idea to bypass the commons for slf4j and go directly.

Cheers Greg



On 29 January 2016 at 15:07, Christoph Nenning <
Christoph.Nenning@lex-com.net> wrote:

> > Should jcl-over-slf4j be in the tiles-core pom?
> >
>
> I see that it is currently the case but I do not need it.
>
>
> > <snip />
> > slf4j-jcl is used to delegate all SLF4J logging to Commons Logging.
> > <snip />
> > ​and then log4j-jcl to delegate all to Commons Logging to log4j 2
>
> SLF4J can be forwarded to log4j 2 directly with log4j-slf4j-impl. There is
> no need to include Commons Logging (if you don't need it for other reasons
> than forwarding).
>
>  <dependency>
>        <groupId>org.apache.logging.log4j</groupId>
>        <artifactId>log4j-slf4j-impl</artifactId>
>  </dependency>
>
>
>
> Regards,
> Christoph
>
>
>
> > It seems to be an option for migrating from Jakarta Commons Logging
> which
> > some might not want to do.
> >
> > <dependency>
> >       <groupId>org.slf4j</groupId>
> >       <artifactId>jcl-over-slf4j</artifactId>
> > </dependency>
> >
> >
> > ​http://www.slf4j.org/legacy.html​
> >
> > ​To ease migration to SLF4J from JCL​
> >
> > ​#####​
> >
> > ​I use ​Jakarta Commons Logging.
> >
> >
> > slf4j-jcl is used to delegate all SLF4J logging to Commons Logging.
> >
> > ​<dependency>
> >       <groupId>org.slf4j</groupId>
> >       <artifactId>slf4j-jcl</artifactId>
> > </dependency>​
> >
> >
> > ​and then log4j-jcl to delegate all to Commons Logging to log4j 2
> >
> > <dependency>
> >             <groupId>org.apache.logging.log4j</groupId>
> >             <artifactId>log4j-jcl</artifactId>
> >             <version>2.5</version>
> > </dependency>​
> >
> >
> >
> > Cheers Greg.
>
>
> This Email was scanned by Sophos Anti Virus
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message