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 17:19:02 GMT
I plan to, but not really motivated at the moment as its quite a job
converting all my poorly formatted logging to use the new format.

Cheers Greg

btw does any body know how to get velocity to log correctly to log4j 2?


On 29 January 2016 at 17:12, Paul Benedict <pbenedict@apache.org> wrote:

> Why not log4j2?
>
> Cheers,
> Paul
>
> On Fri, Jan 29, 2016 at 10:48 AM, Martin Gainty <mgainty@hotmail.com>
> wrote:
>
> > Hi Greg-
> >
> > can you confirm these dependencies for log4j?
> >
> >   <dependencies>    <dependency>
> > <groupId>org.apache.logging.log4j</groupId>
> > <artifactId>log4j-api</artifactId>      <version>2.5</version>
> >     </dependency>    <dependency>
> > <groupId>org.apache.logging.log4j</groupId>
> > <artifactId>log4j-core</artifactId>      <version>2.5</version>
> > </dependency>    <dependency>      <groupId>junit</groupId>
> > <artifactId>junit</artifactId>      <version>4.9</version>
> > <scope>test</scope>    </dependency>  </dependencies>
> > Thanks!
> > Martin
> > ______________________________________________
> >
> >
> >
> > > Date: Fri, 29 Jan 2016 16:04:18 +0000
> > > Subject: Re: Upgrade to tiles 3 jcl-over-slf4j
> > > From: gregh3269@gmail.com
> > > To: dev@struts.apache.org
> > >
> > > 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