Adjust the Data Gateway Logging Level

Increase or decrease the amount of logging information recorded by Data Gateway in a server deployment.

  1. Stop the Jetty server using domain/bin/stopJetty.sh.
  2. In the folder jetty/modules/log4j2-impl/resources/, edit the file log4j2.xml.
  3. In the file log4j2.xml, make these changes:
    Line no. 2 - Change the configuration status to debug ---> <Configuration status="debug" name="Jetty" >.
    Line no. 7 - Change the root level to debug --> <Root level="debug">.
    Line no. 34 -Change the root level to debug --> <Root level="debug">.
  4. In the startJetty.sh file located in the domain/bin folder, add a property -Dlog4j.configurationFile="<Full Path of the log4j2.xml>" as shown.
    java -DSTOP.PORT=34954 -DSTOP.KEY=stop_jetty -DDOMAIN_HOME=$DOMAIN_HOME -DPUBLIC_KEY_FOLDER=/scratch/sunraj/Oracle/Middleware/Oracle_Home_RDG/domain/r dc_keys -DRDC_VERSION=V2 -Djetty.home=$JETTY_HOME Djetty.base=$JETTY_BASE -Djetty.http.port=8080 -Djetty.ssl.port=8443 -Dlog4j.configurationFile="<Full Path of the log4j2.xml>" -jar start.jar
    For example, if the log4j2.xml path is /scratch/user/Oracle/Middleware/Oracle_Home_RDG/jetty/modules/log4j2-impl/resources/log4j2.xml, the format is Dlog4j.configurationFile="/scratch/user/Oracle/Middleware/Oracle_Home_RDG/jetty/modules/log4j2-impl/resources/log4j2.xml".
  5. Start the Jetty server using domain/bin/startJetty.sh.