How to activate DEBUG Mode in Web Application
Issue:
How to activate DEBUG Mode in Web Application
Solution:
Activating Debug Level Logging:
To investigate a web application problem, it is helpful to set the logging level to DEBUG. The default log level is WARN (warning). To activate debug level logging, you will need admin access to the Apache Tomcat server and then edit the log.properties file for the PD Web Application. The default location is:
Program Files\Apache Software Foundation\Tomcat XXX\webapps\wcconfig\pdweb-app\WEB-INF\conf\log.properties
DEFAULT setting
# level OFF, FATAL, ERROR, WARN, INFO, DEBUG
level = WARN
DEBUG Mode
# level OFF, FATAL, ERROR, WARN, INFO, DEBUG
level = DEBUG
To activate the DEBUG mode:
- replace WARN with DEBUG
- save your changes
- restart the Apache Tomcat service
Locating the Debug Logs:
Now please replicate the issue once again so all the information is recorded to the logs. The debug log will then be found in the standard Apache logs folder, under: Program Files\Apache Software Foundation\Tomcat XXX\logs, and the file will be named in the format: wctrc.year.month.day.log (ex. wctrc.2021.12.10.log).
Please note: After completion of the analysis, the log mode should be reset back to the default value and the service restarted. Debug level logs are much larger in size and should only be used for troubleshooting.
Applies to:
Product | Version | Category |
---|---|---|
Process Director Web Application | ALL |