Symantec IGA

 View Only
  • 1.  Custom connector logging on JCS

    Posted Nov 16, 2023 09:24 PM

    Hello,

    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:

    log4j.logger.org.apache.http=DEBUG
    log4j.logger.org.apache.http.wire=DEBUG

    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.

    Thank you!



  • 2.  RE: Custom connector logging on JCS

    Broadcom Employee
    Posted Nov 17, 2023 12:52 AM

    Try and configure httpclient that axis2 uses (commons httpclient or the newer version) via log4j or via environment variables.

    https://zaiste.net/posts/logging-requests-responses-axis2/