Setting Up Log Levels

By default, the log level is Error . You can 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 is 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 User loggers area to specify the log level of the plug-in for all the activities in an application module.
    <logger name="Module-Name">
       <level value="DEBUG"/>
    </logger>

    The level tag defines the log level and the value is Error or Debug where Module-Name is a BW module name.

    Note: When the level is set 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.
    For example, to set the log level of the plug-in activities to Debug for the project application named BwmqSample, you must add the following node:
    <logger name="BwmqSample">
      <level value="DEBUG"/>
    </logger> 
      
  3. Optional: Add the following node in the User loggers area to specify the log level for an activity in the application or module where Module-Name is a BW module name and Plugin-Activity-Name is a plug-in activity name like Put, Get, Listen, Publish, and so on.
    <logger name="Module-Name.Plugin-Activity-Name.DefaultLogger">
       <level value="DEBUG"/>
    </logger>
    For example, if you want to set the log level of the Put activity to Debug for the project application named BwmqSample, you are required to add the following node:
    <logger name="BwmqSample.Put.DefaultLogger">
       <level value="DEBUG"/>
    </logger>
    Note: For the activities that do not configure with specific log levels, they still inherit the log level configured for the plug-in or BusinessWorks.
  4. Save the file.