Supply Tomcat task output at Debug Level If Problem is reproducible
(below LU130470)
The Tomcat task being used for the Web Viewer 14 application needs to be identified - The default name begins with the "CAHV*" prefix.
There are 2 places to set the Logging Level that will be output to the STDOUT DSN of the Tomcat Started Task. - It is best to have the entire Tomcat Started Task output sent when all the possible logging has been completed.
Setting Logging for DEBUG level output
- These outputs will be located in the STDOUT DSN
For Tomcat to set or verify setting of the Web Viewer 14 Logging level, open the file: /Configfile.cfg under the defined directory: CAHVHOME ...as assigned during the Web Viewer 14 install process
In the Configfile.cfg, find the "LOGLEVEL" parameter
Set it to "DEBUG" as below. The setting must be terminated with the semicolon (;) // Specify the logging level (OFF, FATAL, ERROR, WARN, INFO, DEBUG, TRACE or ALL) LOGLEVEL = "DEBUG";
#NOTE 1 - The Configfile.cfg file is only read at startup, so changes do require restarting the Tomcat task #NOTE 2 - This will log all Web Viewer 14 activity after the Tomcat task is running and available.
For logging that includes all startup information, like Tomcat, Database, and Web Viewer initializations. >Under the defined directory: CAHVHOME There is a second file: Log4j2.xml
In the Log configuration file (log4j2.xml) look for the line: <Property name="contentViewerLogLevel">info And change it to: <Property name="contentViewerLogLevel">debug #NOTE: This file change will only output data up until the Tomcat started task is fully initialized and available.
Reproduce the problem and send in the documentation.
After documentation is secured with problem reproduced, revert any debug statements back to info.
Supply WebSphere Liberty task output at Debug Level If Problem is reproducible
There are 2 places to set the Logging Level that will be output to the STDOUT for WebSphere Liberty. Configfile.cfg Log4j2.xml
Setting Logging for DEBUG level output
To set or verify setting of the Web Viewer 14 Logging level, open the file: /Configfile.cfg under the defined directory: CAHVHOME For WebSphere Liberty CAWVHOME is specified in the server.env file. See Set CAWVHome Variable
In the Configfile.cfg, find the "LOGLEVEL" parameter
Set it to "DEBUG" as below. The setting must be terminated with the semicolon (;) // Specify the logging level (OFF, FATAL, ERROR, WARN, INFO, DEBUG, TRACE or ALL) LOGLEVEL = "DEBUG";
In the Log configuration file (log4j2.xml) look for the line: <Property name="contentViewerLogLevel">info And change it to: <Property name="contentViewerLogLevel">debug
Recycle Web Viewer
Reproduce the problem.
Send in the complete output of the WebSphere Liberty task
Reset any debug statements back to info.
Recycle Web Viewer
If the problem is not reproducible at this time
Send the following documentation:
Complete Web Viewer 14 Tomcat task output for time of error OR Compete WebSphere Liberty task output
The Configfile.cfg located at the CAHVHOME directory level. (This contains the settings information for the application)
Log4j2.xml NOTE: The full names of the files are listed in the Web Viewer log (STDOUT DD of the Tomcat server or STDOUT for WebSphere Liberty.): CAHVS0020I Parameter configuration file: … (Configfile.cfg) CAHVS0010I Log configuration file: … (Log4j2.xml)
Additional Information
IMPORTANT: These files are ascii files. Use ISPF option 3.17 to EA (Edit ASCII)
DEBUG - from log4j2.xml is used during startup DEBUG set in config file is used after web Viewer reads the config file Can also write files to View and tell log4j2.xml not to write the files In Started task for Web Viewer could set up output so it gets written into a view file and it gets archived in View as a report