Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

  • The log message is placed in the transaction log that is returned with the evaluation results if the logging pragma is on in the meta section
  • The log message is shown in the browser's console if the ruleset returns JavaScript to a browser (see Web actions). 

The following example would place a string with the value of a variable named query in the log if the rule fired:

...

Another approach to logging would use explicit error handling.

See Debugging KRL for more information on debugging tools.