How to enable debug logging for Web console for troubleshooting purpose?
Component: DOLLAR UNIVERSE WEB CONSOLE
Version: >=7.00.21
To enable debug trace in Tomcat, follow step below
1: Navigate to webapps directory of tomcat example $TOMCAT_INSTALL_DIR\webapps
2: Identify the WebConsole app directory in the webapps directory and locate file WEB-INF\conf\log4j2.xml
3: Create a backup of the log4j2.xml file outside of Tomcat directory
4: Make necessary change listed below as required
4.1: Identify below section and it can be tweaked as required
Example
- To change each log file size to 20MB <SizeBasedTriggeringPolicy size="20MB"/>
- To change total number of files to retain to 15 <DefaultRolloverStrategy max="15" />
Change the logging level from INFO to DEBUG
4.2: Identify and change below segment as suggested
FROM
<Root level="INFO">
<AppenderRef ref="UNIJOB_SIZE_LIMITER" level="INFO"/>
</Root>
To
<Root level="DEBUG">
<AppenderRef ref="UNIJOB_SIZE_LIMITER" level="DEBUG"/>
</Root>
5: Restart the Tomcat Service
Note: With above changes the log files velocity.log and univiewer_server.log.* will be generated under path $TOMCAT_INSTALL_DIR\webapps\WebConsoleAppName\WEB-INF\logs