"log" objects provides a way to log messages with different log level:
Methods
Example
1. In order to have logging enabled open your thing, click [Log Settings] and set Log Level to "DEBUG":
2. create "test" script method:
3. execute "test" method
4. find 3 log messages: