You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Swaminathan Gurumoorthy <sw...@yahoo.com> on 2003/06/28 00:17:46 UTC

using Commons logging for struts

I use commons logging in my struts app. I am given to understand the Struts Framework itself uses Commons logging for its internal logging.
 
Because of this my app log file has lots of struts log messages - like how it reads web.xml and such. Is there any way to tell struts not to log in my log file.
 
Thanks in advance.
Swami


---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

RE: using Commons logging for struts

Posted by Steve Raeburn <st...@ninsky.com>.
BTW, in my case I set the root looger to ERROR and then explicitly enabke
anything I'm interested in.

  log4j.rootCategory=ERROR, CONSOLE
  log4j.logger.com.ninsky=DEBUG

Steve

> -----Original Message-----
> From: Steve Raeburn [mailto:steve@ninsky.com]
> Sent: June 27, 2003 3:35 PM
> To: Struts Users Mailing List
> Subject: RE: using Commons logging for struts
>
>
> You should be able to configure the underlying logging mechanism
> to not log
> struts messages.
>
> For example, if you are using log4j you could add a line like
>   log4j.logger.org.apache.struts=ERROR
> to your log4j.properties file and then you would only see error messages
> from struts. You might need to add other similar lines to filter other
> packages that struts depends on.
>
> Steve
>
> > -----Original Message-----
> > From: Swaminathan Gurumoorthy [mailto:swamiolympus@yahoo.com]
> > Sent: June 27, 2003 3:18 PM
> > To: struts-user@jakarta.apache.org
> > Subject: using Commons logging for struts
> >
> >
> > I use commons logging in my struts app. I am given to understand
> > the Struts Framework itself uses Commons logging for its
> internal logging.
> >
> > Because of this my app log file has lots of struts log messages -
> > like how it reads web.xml and such. Is there any way to tell
> > struts not to log in my log file.
> >
> > Thanks in advance.
> > Swami
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month!
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>



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


RE: using Commons logging for struts

Posted by Steve Raeburn <st...@ninsky.com>.
You should be able to configure the underlying logging mechanism to not log
struts messages.

For example, if you are using log4j you could add a line like
  log4j.logger.org.apache.struts=ERROR
to your log4j.properties file and then you would only see error messages
from struts. You might need to add other similar lines to filter other
packages that struts depends on.

Steve

> -----Original Message-----
> From: Swaminathan Gurumoorthy [mailto:swamiolympus@yahoo.com]
> Sent: June 27, 2003 3:18 PM
> To: struts-user@jakarta.apache.org
> Subject: using Commons logging for struts
>
>
> I use commons logging in my struts app. I am given to understand
> the Struts Framework itself uses Commons logging for its internal logging.
>
> Because of this my app log file has lots of struts log messages -
> like how it reads web.xml and such. Is there any way to tell
> struts not to log in my log file.
>
> Thanks in advance.
> Swami
>
>
> ---------------------------------
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!



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