Setting Up Log Levels

By default, the log level is Error . The plug-in allows you to change the log level to trace different messages.

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 will be 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\config\design\logback directory and open the logback.xml file.
  2. Add the following node in the Console Appender area to specify the log level for the plug-in.

    For SQS:

     <logger name="com.tibco.tci.plugin.aws.sqs.runtime">
       <level value="DEBUG"/>
     </logger>

    For SNS:

    <logger name="com.tibco.tci.plugin.aws.sns.runtime">
       <level value="DEBUG"/>
     </logger>

    The level tag defines the log level and the value is Error or Debug.

    Note: When the level is set to Debug, the input and output for the plug-in activities are also displayed in the Console view. For more details, refer Log Levels.
  3. Optional: Optional: Add the following node in BusinessWorks Palette and Activity loggers area to control the log level for an activity:
    <logger name="com.tibco.tci.plugin.aws.sqs.runtime.create.CreateActivity">
      <level value="DEBUG"/>
    </logger>
    <logger name="com.tibco.tci.plugin.aws.sqs.runtime.delete.DeleteActivity">
      <level value="DEBUG"/>
    </logger>
    <logger name="com.tibco.tci.plugin.aws.sqs.runtime.inquire.InquireActivity">
      <level value="DEBUG"/>
    </logger>
    <logger name="com.tibco.tci.plugin.aws.sqs.runtime.put.PutActivity">
      <level value="DEBUG"/>
    </logger>
    <logger name="com.tibco.tci.plugin.aws.sqs.runtime.receive.ReceiveActivity">
      <level value="DEBUG"/>
    </logger>
    <logger name="com.tibco.tci.plugin.aws.sns.runtime.create.CreateActivity">
      <level value="DEBUG"/>
    </logger>
    <logger name="com.tibco.tci.plugin.aws.sns.runtime.destroy.DestroyActivity">
      <level value="DEBUG"/>
    </logger>
    <logger name="com.tibco.tci.plugin.aws.sns.runtime.publish.PubActivity">
      <level value="DEBUG"/>
    </logger>
    Note: Activities that are not configured with specific log levels, still inherit the log level configured for the plug-in or TIBCO ActiveMatrix BusinessWorks™ .
  4. Save the file.