Nevermind, I am dumb, I didn't know I had to set all the properties before I
created a Client object.  I don't think the docs mentioned that.

Tim
----- Original Message ----- 
From: "Kalnichevski, Oleg" <[EMAIL PROTECTED]>
To: "Commons HttpClient Project" <[EMAIL PROTECTED]>
Sent: Thursday, June 24, 2004 1:15 PM
Subject: RE: Logging Problem



Tim,

* What is the exact JRE version that you are using?
* Are you running HttpClient in a container (servlet container, EJB
container)?
* What other libraries do you have on the JRE's classpath?
* Have you tried setting those system properties upon the JRE startup
using -D directive?

Oleg

-----Original Message-----
From: Tim Patton [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 24, 2004 19:06
To: [EMAIL PROTECTED]
Subject: Logging Problem


I've been trying to get logging output to debug a cookie problem but no luck
so far.  As far as I can tell from the docs, I just need these 4 lines of
code in my progrma somewhere:


System.setProperty("org.apache.commons.logging.simplelog.defaultlog","debug"
);
  System.setProperty("org.apache.commons.logging.Log",
"org.apache.commons.logging.impl.SimpleLog");
  System.setProperty("org.apache.commons.logging.simplelog.showdatetime",
"true");

System.setProperty("org.apache.commons.logging.simplelog.log.httpclient.wire
", "debug");

System.setProperty("org.apache.commons.logging.simplelog.log.org.apache.comm
ons.httpclient", "debug");


Am I missing something else?  I get no logging output, but my program can
connect to a site and grab a page no problem.  I do not have Log4J anywhere
on my machine as far as I can tell.  I made a short test program to see what
was going on, I can send that to the list if it will help.

Tim


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


****************************************************************************
***********************
The information in this email is confidential and may be legally privileged.
Access to this email by anyone other than the intended addressee is
unauthorized.  If you are not the intended recipient of this message, any
review, disclosure, copying, distribution, retention, or any action taken or
omitted to be taken in reliance on it is prohibited and may be unlawful.  If
you are not the intended recipient, please reply to or forward a copy of
this message to the sender and delete the message, any attachments, and any
copies thereof from your system.
****************************************************************************
***********************

---------------------------------------------------------------------
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