openhab-docs/configuration/blockly/rules-blockly-logging.md

1.3 KiB

layout title
documentation Rules Blockly - Logging

Logging

return to Blockly Reference

Introduction

This section explains the blocks that have been added to allow logging.

toc

Logging and Output

These blocks enable arbitrary content to be published to the openHAB log.

logging-overview

More about that topic can be viewed at youtube Logging

Log Statement

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

print-to-stdout

Function: creates a print statement with the given text in the rule that logs to stdout

Return to Blockly Reference

return to Blockly Reference