Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This section explains how to enable debugging logs for event receivers in order to view information about them in the CLI logs.

To enable databridge debug logs, follow the steps given below:

  1. Start the WSO2 DAS server and login to the Management Console. For detailed instructions, see Running the Product.
  2. In the Configure tab, click Logging to open the Logging Configuration page.
  3. In the Filter Loggers by field, enter org.wso2.carbon.databridge.core.internal.queue and click Contains. This fetches the following two loggers.
    Image Added 
  4. In the Level field, select DEBUG for both the loggers.

As a result of this configuration, the following logs are printed in the CLI.

  • Code Block
    <size of event queue> + " messages in queue before " + <name of the current thread> + " worker has polled queue ".
  • Code Block
    "Dispatching event to " + <number of subscribers> + " subscriber(s) ".
  • Code Block
    <size of event queue> + " messages in queue after " + <name of the current thread> + " worker has finished work ".