how do you tell log4j the location of this log configuration file? thanks
-----Original Message-----
From: otisg [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 12:34 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: bug in httpclient, can't talk to realaudio http server
This is what I use.
log4j.category.httpclient.wire=WARN, HTTPCLIENTWIRELOG
##
# NORMAL file appender
#log4j.appender.HTTPCLIENTWIRELOG=org.apache.log4j.FileAppender
# ROLLING file appender
log4j.appender.HTTPCLIENTWIRELOG=org.apache.log4j.RollingFileAppender
# set the max log size (only if we are using RollingFileAppender)
log4j.appender.HTTPCLIENTWIRELOG.MaxFileSize=100MB
# keep a few backup files (only if we are using RollingFileAppender)
log4j.appender.HTTPCLIENTWIRELOG.MaxBackupIndex=2
log4j.appender.HTTPCLIENTWIRELOG.File=${logRoot}/wire.log
log4j.appender.HTTPCLIENTWIRELOG.layout=org.apache.log4j.PatternLayout
log4j.appender.HTTPCLIENTWIRELOG.layout.ConversionPattern=%-5p [%t] %c -
%m: %d{DATE}\n
_______________________________________________________________
Sign up for FREE iVillage newsletters <http://s.ivillage.com/rd/16705> .
>From health and pregnancy to shopping and relationships, iVillage
has the scoop on what matters most to you.
<-----Original Message----->
>
> From: Donald Ball
> Sent: 5/1/2002 6:09:37 PM
> To: [EMAIL PROTECTED]
> Subject: RE: bug in httpclient, can't talk to realaudio http server
>
> On Tue, 2002-05-14 at 14:57, Xiaowei Jiang wrote:
> Can you post more details about the error. It seems to be working for
me.
> That website is responding HTTP/1.0 to a HTTP/1.1 request, but that
> shouldn't cause this problem. Could you turn on the log and see what's
> transfered on the wire?
>
> i'd be happy to, but i don't know what you mean by turn on the log. i
> already posted the results of talking to the server manually. i
patched
> HttpMethodBase to print the status lines:
>
> String statusLine = conn.readLine();
> System.err.println("STATUS LINE: "+statusLine);
>
> while(statusLine != null && !statusLine.startsWith("HTTP/")) {
> statusLine = conn.readLine();
> System.err.println("STATUS LINE: "+statusLine);
> }
> if (statusLine == null) {
> // A null statusLine means the connection was lost before we
> got a response. Try again.
> throw new HttpRecoverableException("Error in parsing the
> status line from the response: unable to find line starting with
> \"HTTP/\"");
> }
>
> and it reports this:
> STATUS LINE: null
> STATUS LINE: null
> STATUS LINE: null
> STATUS LINE: null
>
> which seems to indicate that the problem is actually in
HttpConnection.
>
> if you can tell me how to turn on the log, i'll be happy to do so.
> thanks.
>
> - donald
>
> --
> To unsubscribe, e-mail:
> For additional commands, e-mail:
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>