1.4 KiB
1.4 KiB
layout | title |
---|---|
documentation | Rules Blockly - Logging |
Logging
Introduction
This section explains only the blocks that have been added to the standard blocks by openHAB
{::options toc_levels="2..4"/}
- TOC {:toc}
{: #blockly-logging-overview}
Logging and Output
These blocks enable arbitrary content to be published to the openHAB log.
More about that topic can be viewed at Logging
Log Statement
Function: Sends an entry to the openHAB log file with a defined severity level.
-
A severity level can be provided via the dropdown list for the log statement
- error
- warn
- info
- debug
- trace
Since 3.3: The block attached to the log-block is not restricted to a string type block anymore
Print Statement
Function: creates a print statement with the given text in the rule that logs to stdout