Setting Up Log Levels
In the logback.xml file, you can configure a different log level for the plug-in and plug-in activities to trace different messages.
If you do not configure any log levels, the plug-in uses the default log level of TIBCO ActiveMatrix BusinessWorks. The default log level is
Error.
- Procedure
- Navigate to the
TIBCO_HOME/bw/version_number/config/design/logbackdirectory and open the logback.xml file. - Add the following node in the
BusinessWorks Palette and Activity loggers area to specify a log level for the plug-in:
<logger name="com.tibco.bw.palette.amqp.runtime"> <level value="DEBUG"/> </logger>
The value of the
levelelement can beError,Info, orDebug.Note: If you set the log level to Debug, the input and output for the plug-in activities are also displayed in the Console view. For more details about each log level, see Log Levels. - Add different nodes in the
BusinessWorks Palette and Activity loggers area to specify different log levels for the activities and shared resources.
For the AMQP Connection shared resource, add the following node:
<logger name="com.tibco.bw.sharedresource.amqp.runtime"> <level value="DEBUG"/> </logger>
For the AMQPReceiveMessage activity, add the following node:<logger name="com.tibco.bw.palette.amqp.runtime.receive.AmqpReceiveEventSource"> <level value="DEBUG"/> </logger>
For the AMQPSendMessage activity, add the following node:<logger name="com.tibco.bw.palette.amqp.runtime.send.AmqpSendActivity"> <level value="DEBUG"/> </logger>
For the AMQPGetMessage activity, add the following node:<logger name="com.tibco.bw.palette.amqp.runtime.getamqp.AmqpGetMessageActivity"> <level value="DEBUG"/> </logger>
Note: The activities that are not configured with specific log levels use the log level configured for the plug-in. - Save the file.