Hi Richard,
I did the following, and it stopped the DEBUG's in log.
<category name="httpclient">
<priority value="ERROR" />
</category>
But, it was still throwing one WARN message, from one of the classes in
httpclient package. So I added the following:
<category name="org.apache.commons">
<priority value="ERROR" />
</category>
That took care of the WARN message.
Then I thought, that the second one is more generic, and should take care of
the DEBUG as well, so I commented out the first category-priority. So, to my
surprise, there was no WARN message, but the DEBUG's came back..
So, I guess both are needed for supressing ERROR and WARN.. maybe, it is my
lack of fully understanding how log4j works..
thanks, anyway for showing the direction.
M Rather
>
> From: "Richard Zeng" <[email protected]>
> Date: 2006/05/03 Wed PM 07:41:14 EDT
> To: <[email protected]>
> Subject: Re: [magnolia-user] httpClient logging
>
> Hi,
>
> Try this one.
>
> <category name="httpclient">
> <priority value="WARN" />
> </category>
>
> Cheers,
>
> Richard
> ([EMAIL PROTECTED])
>
> On 5/4/06, mrather <[email protected]> wrote:
> > Hello,
> >
> > I have a page template that includes a banner,and the banner is supposed to
> > include the company stock quote that is served at a remote url.
> >
> > I am using apache commons httpclient to access the quote from the url, and
> > do some formatting before showing in the banner. (I am not using c:import,
> > as i want to strip out some html from the response before displaying)
> >
> > All works, except for the following issue:
> > The catalina.out log file gets a huge amount of commons httpclient log
> > information, and most of it is DEBUG info.
> >
> > I looked up on apache's common.httpClient site and they said that they come
> > with default settings for Log4J, java.util.logging and SimpleLog.
> >
> > I know magnolia uses Log4J, but I could not find anywhere to set the
> > logging level for commons.httpclient, except for this in log4j.xml
> > <category name="org">
> > <priority value="WARN" />
> > </category>
> > I even tried to be more explicit as:
> > <category name="org.apache.commons.httpclient">
> > <priority value="INFO" />
> > </category>
> >
> > I have used the same code for another jsp application, and I did not have
> > any issue like this there. So my hunch is that somewhere in magnolia the
> > logging level for httpclient is set at DEBUG or httpclient's logging is
> > enabled. Where is it, and can I override it? Or have I understood the issue
> > wrong? please advise..
> >
> > Thanks
> > M Rather
> >
> >
> >
> > ----------------------------------------------------------------
> > for list details see
> > http://www.magnolia.info/en/magnolia/developer.html
> > ----------------------------------------------------------------
> >
>
> ----------------------------------------------------------------
> for list details see
> http://www.magnolia.info/en/magnolia/developer.html
> ----------------------------------------------------------------
>
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------