...
Code Block | ||||
---|---|---|---|---|
| ||||
log <level> <expr> |
...
<expr>.klog(<message>) |
where <expr>
is any valid KRL expression and <message>
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 firedshould fire:
Code Block | ||||
---|---|---|---|---|
| ||||
pre {
query = event:attr("query")
fire = function(query){
result = shouldFire(query);
}()
fired { log debug "query:"+query }
|
...