From 8a537ecd2c59c397fae78629810a0435e3133eee Mon Sep 17 00:00:00 2001 From: Fabian Wolter Date: Sun, 14 Mar 2021 16:13:27 +0100 Subject: [PATCH] Add some logger examples (#1510) Signed-off-by: Fabian Wolter --- administration/logging.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/administration/logging.md b/administration/logging.md index d85b79e90..3db1e3211 100644 --- a/administration/logging.md +++ b/administration/logging.md @@ -122,9 +122,18 @@ The list can be also filtered with grep. To find out the Z-Wave binding the foll ```shell openhab> list -s | grep zwave 253 x Active x 80 x 2.5.5 x org.openhab.binding.zwave - ``` +Here are some popular loggers: + +| Logger | Logged when … | +|---------------------------------------|--------------------------------------------------------------------| +| `openhab.event.ItemStateChangedEvent` | … an Item is updated with a new value | +| `openhab.event.ItemStateEvent` | … an Item is updated with the old or a new value | +| `openhab.event.ThingStatusInfoEvent` | … a Thing updates its status (e.g. ONLINE, OFFLINE) | +| `org.openhab.binding.[bindingname]` | … the binding issued a log message | +| `org.openhab.core.thing` | … a Thing changes its lifecycle state (e.g. initializing, dispose) | + The following example sets the logging for the Z-Wave binding to **DEBUG** ```shell