This post is more than 5 years old
7 Posts
0
1091
Logging Atmos Java API HttpClient calls
Its my understanding that Atmos Java API uses Apache HttpClient to make REST calls. Since HttpClient can log to the console (see http://hc.apache.org/httpcomponents-client-ga/logging.html), I was hopeful to see the GET commands in my Eclipse console by adding to my log4j.properties file:
log4j.logger.org.apache.http=DEBUG
I know the logging works since I deliberatedly added a few logging lines to make sure log4j was setup correctly. Any ideas would be appreciated.
Sincerely,
Jeff
JasonCwik
281 Posts
0
September 11th, 2012 13:00
We only use the Apache HttpClient if requested. To do this, initialize an object of class EsuRestApiApache instead of the usual EsuRestApi. I just tested the log4j setting above and got the low-level tracing:
JeffAyers
7 Posts
0
September 11th, 2012 14:00
Thank you for the quick response. Your answer did the trick.