Debugging a Specific Application on the AppNode
-
To enable DEBUG logging on a specific application of the supported loggers, deployed on the AppNode, where multiple applications are running on the AppNode, you can add a new logger to the existing logback.xml file of the AppNode.
In this scenario the property bw.engine.separate.logs.by.app need not be set to true.
<logger name="BWApp.#APPNAME#"> <level value="DEBUG"/> </logger>
Where 'APPNAME' is the name of the application whose debug logs are desired.
For example, if there are three applications running on the AppNode, App1.application, App2.application, and App3.application, the debug logs can be turned on only for App2.application by adding a logger BWApp.#App2.application# to the logback.xml file.<logger name="BWApp.#App2.application#"> <level value="DEBUG"/> </logger>
The new logger can be appended by any of the supported loggers. - If you want debug logs only for the
HTTP palette of the App2.application, add a new logger to the
logback.xml as follows:
<logger name="BWApp.#App2.application#.com.tibco.bw.palette.http"> <level value="DEBUG"/> </logger>
- Use
<appender-ref ref="APPLICATION-FILE"/> to separate log files for each supported logger.
<logger name="BWApp.#APPNAME#" additivity="false"> <level value="DEBUG"/> <appender-ref ref="APPLICATION-FILE"/> </logger>
Copyright © Cloud Software Group, Inc. All rights reserved.