Enable httpclient logging in Access Gateway 12.7

Document ID : KB000015670
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

With Access Gateway R12.7 using the documented way to enable httpclient logging does not work. 

The documented method is to change the server.conf entry: 

    httpclientlog ="yes"

 

But an extra setting is required in Ag R12.7

Answer:

For Access Gateway R12.7 it needs : 

In server.conf : 

   httpclientlog ="yes"

This should be the only setting required.

But httpclient logging uses a common logging module, that can use either SimpleLogging, or log4j or java.util.logging.  The common logging module does some checking at startup, and determines which logging mechanism to use.   Prior to R12.7 the default was java.util.logging, but some change in R12.7 has changed the default. 

You can set the default for common logging to java.util.logging via JVM startup property : 

    -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger 

For Access Gateway R12.7 this needs to be set in : 

For Windows: smSpsProxyEngine.properties 

 

 

Edit the smSpsProxyEngine.properties file and add the parameter : 

2017-08-29 12_26_04-SPS R12.52 Sp1Cr02 - VMware Workstation.png

For Unix : proxyserver.sh 

 

Edit the proxyserver.sh file and add the parameter :  

2017-08-29 12_35_19-CentOS 6.5 64-bit-SPS - VMware Workstation.png

 

It is also raised as an internal Sustaining Engineering ticket, and we expect it will be fixed in a latter CR version.