Real-time Webtask Logs

Real-time Webtask Logs is an extension that displays all logs in real-time for all custom code in your account. This includes all console.log output and exceptions.

Configuring the Extension

To install and configure this extension, click on the Real-time Webtask Logs box in the list of provided extensions on the Extensions page of the Management Portal. The Install Extension window pops open.

Click the Install button.

Using Your Installed Extension

To view your installed extension, navigate to the Extensions page of the Management Portal, click on the Installed Extensions link, and select the Real-time Webtask Logs line. You can view the logs in full screen by selecting the FULL SCREEN MODE button. Press Escape to exit full screen mode.

To clear the logs and start fresh select the the red CLEAR CONSOLE button at the bottom right.

Debugging Rules

The Real-time Webtask Logs extension can be used to debug any Rules in your implementation. This includes all console.log output and exceptions. Let's follow a simple hello world example.

Navigate to the Rules page of the Management Portal. Click the Create Rule button. Select the empty rule button and paste the code below or modify it as you like.

function (user, context, callback) {
  user.hello = 'world';
  console.log('===> set "hello" for ' + user.name);
  callback(null, user, context);
}

You are now ready to run this rule. Before you do so, open a new tab and navigate to the Extensions page of the Management Portal, click on the Installed Extensions link, and select the Real-time Webtask Logs line. You are now viewing logs real-time and are ready to try your rule. Go back to your Rules tab and click TRY THIS RULE. Then head back to your Real-time Webtask Logs tab to see the results.

That's it, you are done!

Additional Information