Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 6

...

Code Block
languagejavascript
themeConfluence
<expr>.klog(<message>)

...

log <level> <expr> 

where <level> is one of info, warn, error, or debug; and <expr> is any valid KRL expression that results in a string (or something that can be cast as a string such as a number).

...

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

Code Block
languagejavascript
themeConfluence
pre {
  query = event:attr("query")
  fire = function(query){
    result = shouldFire(query);
    
  }()
fired { log debug "query:"+query } 

...