Since you're using log4j, you can configure any logger you want using
additional configuration.

log4j.logger.org.apache.struts=DEBUG

Paul

On Wed, Nov 11, 2009 at 6:49 AM, NiJK <[email protected]> wrote:
>
> I'm trying to get Log4j working with my application.
>
> It works fine in all my classes when I add the line
> private static Log log = LogFactory.getLog(ClassName.class);
>
> However, a DispatchAction already has a logger defined. When I add this line
> to a DispatchAction I am receiving two lines of output instead of just the
> one. If I remove the line, I get no output at all.
>
> I am forwarding commons-logging to log4j using
> org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.Log4jFactory
>
> How do I configure the logger for a struts action?
>
> Thanks.
> --
> View this message in context: 
> http://old.nabble.com/DispatchAction-and-Log4j-tp26300684p26300684.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to