I have custom connector deployed and running on Java connector server. It is based on sample Forward inc. SOAP web services connector, so it is using Axis2 to communicate with endpoint. I need to log HTTP traffic (headers, requests and responses). I have tried to add:
to org.ops4j.pax.logging.cfg file
according to this article: Configuring JCS endpoint debug logging for the CA IAM CS
but have no luck. I have also tried to configure log4j loggers programatically.
org.apache.log4j.Logger httpLogger = org.apache.log4j.Logger.getLogger("org.apache.http");httpLogger.setLevel(org.apache.log4j.Level.DEBUG);
Have anybody done this succesfully? Any help would be appreciated.
Try and configure httpclient that axis2 uses (commons httpclient or the newer version) via log4j or via environment variables.