Setting Up Log Levels

You can configure different log levels 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.

Note: If neither the plug-in log nor the BusinessWorks log is configured in the logback.xml file, the error logs of the plug-in are displayed in the Console view by default.

If the plug-in log is not configured but the BusinessWorks log is configured in the logback.xml file, the configuration for the BusinessWorks log is implemented by the plug-in.

Procedure

  1. Navigate to the TIBCO_HOME/bw/version_number/config/design/logback directory and open the logback.xml file.
  2. 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.bc.runtime">
       <level value="DEBUG"/>
    </logger>

    The value of the level element can be Error, Info, or Debug.

    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. See Log Levels for more details regarding each log level.
  3. Optional: Add the following node in the BusinessWorks Palette and Activity loggers area to specify a log level for an activity:
    <logger name="com.tibco.bw.palette.bc.runtime.ActivityName">
       <level value="DEBUG"/>
    </logger>
    For example,
    • If you want to set the log level of the ReceiveMiscMsg, ReceiveRequest/Notification, and ReceiveResponse activities to Debug, add the following node:
      <logger name="com.tibco.bw.palette.bc.runtime.ReceiveMiscMsgEventSource/
      ReceiveRequestNotificationEventSource/ReceiveResponseEventSource">
         <level value="DEBUG"/>
      </logger>
    • If you want to set the log level of the SendMiscMsg, SendRequest/Notification, and SendResponse activities to Debug, add the following node:
      <logger name="com.tibco.bw.palette.bc.runtime.SendMiscMsgActivity/
      SendRequestNotificationActivity/SendResponseActivity">
         <level value="DEBUG"/>
      </logger>
    • If you want to set the log level of the shared resource to Debug, add the following node:
      <logger name="com.tibco.bw.sharedresource.bc.runtime.BcConnectionSharedRecourceFactory">
         <level value="DEBUG"/>
      </logger>
    Note: The activities that are not configured with specific log levels use the log level configured for the plug-in.
  4. Save the file.