How to get debug level log for the troubleshooting of installing a license.

  • KM03001399
  • 31-Oct-2017
  • 21-May-2021

Summary

Debug level log about installing a license can be available by tweaking \central\conf\log4j.properties.

Question

How can you get debug level log for the troubleshooting of installing a license?

Answer

1. Add the following lines to <OO_HOME>\central\conf\log4j.properties:

log4j.logger.com.hp.autopassj=DEBUG, APJ.appender
log4j.additivity.com.hp.autopassj=false
log4j.appender.APJ.appender=org.apache.log4j.FileAppender
log4j.appender.APJ.appender.File=${log.file.path}/autopassj.log
log4j.appender.APJ.appender.Append=true
log4j.appender.APJ.appender.layout=org.apache.log4j.PatternLayout
log4j.appender.APJ.appender.layout.ConversionPattern=%-5p - %d{MMM dd HH:mm:ss} - %m%n

2. Restart Central.

3. Install a license and reproduce an issue. Then, debug log messages gengerated by the autopass library are to be recorded in <OO_HOME>/central/var/log/autopassj.log.

4. Revert log4j.properties back to the original and restart Central if necessary.