You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ashish Kulkarni <as...@gmail.com> on 2007/08/24 16:26:33 UTC

effect of removing commons-logging from classpath?

Hi
I have a struts 1.2.4 application, and i have log4j.jar and
commons-logging.jar in classpath
In my application i use log4j for logging,
i wanted to know what would be effect of removing commons-logging.jar file
from classpath

Re: effect of removing commons-logging from classpath?

Posted by Chris Pratt <th...@gmail.com>.
> I have a struts 1.2.4 application, and i have log4j.jar and
> commons-logging.jar in classpath In my application i use log4j for logging,
> i wanted to know what would be effect of removing commons-logging.jarfile
> from classpath

Commons Logging isn't really a logger itself.  It is a framework that
allows library writers (like the Struts team) to write their code
without worrying what logger you will eventually use.  You can use
Log4j, java.util.log, a simple logger that just writes to the console,
or practially any other logging system.  So you need the
commons-logging jar (which is very small) to support what Struts is
written to, and you need log4j so that you can have a rich, extensible
logging environment.
  (*Chris*)

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: effect of removing commons-logging from classpath?

Posted by Paul Benedict <pb...@apache.org>.
Just drop a log4.properties or log4j.xml in the root of your classpath.

On 8/24/07, Ashish Kulkarni <as...@gmail.com> wrote:
>
> Hi
> How do i configure sturts logging then, i have a log4j.properties file
> where
> i set my application logging, can i use the same for struts logging
>
> Ashish
>
> On 8/24/07, Paul Benedict <pb...@apache.org> wrote:
> >
> > Impossible. Struts is built with Commons Logging.
> >
> > On 8/24/07, Ashish Kulkarni <as...@gmail.com> wrote:
> > >
> > > Hi
> > > I have a struts 1.2.4 application, and i have log4j.jar and
> > > commons-logging.jar in classpath
> > > In my application i use log4j for logging,
> > > i wanted to know what would be effect of removing
> commons-logging.jarfile
> > > from classpath
> > >
> >
>

Re: effect of removing commons-logging from classpath?

Posted by Ashish Kulkarni <as...@gmail.com>.
Hi
How do i configure sturts logging then, i have a log4j.properties file where
i set my application logging, can i use the same for struts logging

Ashish

On 8/24/07, Paul Benedict <pb...@apache.org> wrote:
>
> Impossible. Struts is built with Commons Logging.
>
> On 8/24/07, Ashish Kulkarni <as...@gmail.com> wrote:
> >
> > Hi
> > I have a struts 1.2.4 application, and i have log4j.jar and
> > commons-logging.jar in classpath
> > In my application i use log4j for logging,
> > i wanted to know what would be effect of removing commons-logging.jarfile
> > from classpath
> >
>

Re: effect of removing commons-logging from classpath?

Posted by Paul Benedict <pb...@apache.org>.
Impossible. Struts is built with Commons Logging.

On 8/24/07, Ashish Kulkarni <as...@gmail.com> wrote:
>
> Hi
> I have a struts 1.2.4 application, and i have log4j.jar and
> commons-logging.jar in classpath
> In my application i use log4j for logging,
> i wanted to know what would be effect of removing commons-logging.jar file
> from classpath
>