Skip to content

Commit

Permalink
Clarified device logging documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
seime committed Jun 27, 2024
1 parent 5b76740 commit c9da714
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,22 @@ the device logs directly to openHAB - which will write them using the standard l
See https://esphome.io/components/logger.html
2. Configure the `deviceLogLevel` parameter on the `thing` configuration. Valid
values: https://esphome.io/components/logger.html#log-levels
3. The default log level in openHAB is `WARN`, so you need to add a logger named `ESPHOMEDEVICE`with level `INFO` to see
actual log statements. Either add this to your `log4j.xml` file or use the Karaf console:

```
log:set INFO ESPHOMEDEVICE
```

**or**

```xml

<Loggers>
...
<Logger level="DEBUG" name="ESPHOMEDEVICE"/>
</Loggers>
```

This will produce logs on level `INFO` in the openHAB logs like this:

Expand Down

0 comments on commit c9da714

Please sign in to comment.