Add some logger examples (#1510)

Signed-off-by: Fabian Wolter <github@fabian-wolter.de>
pull/1512/head
Fabian Wolter 2021-03-14 16:13:27 +01:00 committed by GitHub
parent 5c8980964f
commit 8a537ecd2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 1 deletions

View File

@ -122,9 +122,18 @@ The list can be also filtered with grep. To find out the Z-Wave binding the foll
```shell ```shell
openhab> list -s | grep zwave openhab> list -s | grep zwave
253 x Active x 80 x 2.5.5 x org.openhab.binding.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** The following example sets the logging for the Z-Wave binding to **DEBUG**
```shell ```shell