> I have the appropriate configurations completed to use Log4J w/Tomcat.
> However, how would I invoke Log4J from within my action class to
> generate DEBUG statements?
> I have the following package imported:
> import org.apache.log4j.*;
> Any examples would be most appreciated.
> Thanks in advance.
> - Mitesh

 add an attribute
 private Logger log = Logger.getLogger();

 to debug use
 if (log.isDebugEnabled()) {
    log.debug("message");
 }

I think that will do the trick.

Pedro Salgado



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to