Actually, I have a confession to make.

I was nothing to do with the logging in the end. I was porting everything
over from an earlier struts, to 1.0.2, and was using execute() instead of
perform(). Changed them all over and it now works fine.

I'm just gonna nip out the back and shoot myself! Please excuse the noise.

Sim"BANG"........


----- Original Message -----
From: "Adam Hardy" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 18, 2003 1:09 PM
Subject: Re: Logging in struts.


> sounds like your logging configuration file doesn't contain what you
> think it does or is not being found at start-up.
>
> Simon Kelly wrote:
> > 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]
> >
> >
>
>
> ---------------------------------------------------------------------
> 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