Enable debug tracing for Web Console
search cancel

Enable debug tracing for Web Console

book

Article ID: 279630

calendar_today

Updated On: 02-22-2024

Products

CA Automic Dollar Universe

Issue/Introduction

How to enable debug logging for Web console for troubleshooting purpose?

Environment

Component: DOLLAR UNIVERSE WEB CONSOLE

Version: >=7.00.21 

Resolution

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