Done that.

It's my usual option for loggin in struts. But even that seems to have
failed me :-(


----- Original Message -----
From: "Kwok Peng Tuck" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 18, 2003 12:24 PM
Subject: Re: Logging in struts.


> Hmm very strange since it doesn't log properly.
> Looks a bit different then how it's done in the struts examples.
>
> I see that they do this,
>
>
> import org.apache.commons.logging.Log;
> import org.apache.commons.logging.LogFactory;
>
> ...
> ..
> ..
> public final class EditSubscriptionAction extends Action {
>
>  private Log log =
>         LogFactory.getLog("org.apache.struts.webapp.Example");
>
> ......
> .......
>    public ActionForward execute(ActionMapping mapping,
>                  ActionForm form,
>                  HttpServletRequest request,
>                  HttpServletResponse response)
>     throws Exception {
>                    ...
>                    ....
>                 if (log.isDebugEnabled()) {
>             log.debug("EditSubscriptionAction:  Processing " + action +
>                       " action");
>         }
>
>
> So it looks like they get a Log object from the LogFactory  and just log
> to it.
>
>
> >
> >
>
>
> ---------------------------------------------------------------------
> 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