Setting Up Log Levels

You can configure a different log level for the plug-in, plug-in activities, and shared resources 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

  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.mongodb.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. For information about each log level, see Log Levels.
  3. Optional: Add different nodes in the BusinessWorks Palette and Activity loggers area to specify different log levels for the activities and shared resources. For the MongoDB Connection shared resource, add the following node:
    <logger name="com.tibco.bw.sharedresource.mongodb.runtime">
       <level value="DEBUG"/>
    </logger>
    For the EventListener and the WaitForEvent activities, add the following node:
    <logger name="com.tibco.bw.palette.mongodb.runtime.ActivityNameEventSource">
       <level value="DEBUG"/>
    </logger>
    For other activities, add the following node:
    <logger name="com.tibco.bw.palette.mongodb.runtime.ActivityNameAsynchronousActivity">
       <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.