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 <n_kitch...@hotmail.com> 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: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org