Add docs for logger.set_level (#2143)
This commit is contained in:
parent
2810ca5e91
commit
01ada702bb
1 changed files with 13 additions and 0 deletions
|
@ -54,3 +54,16 @@ Possible log severities are:
|
||||||
- debug
|
- debug
|
||||||
- notset
|
- notset
|
||||||
|
|
||||||
|
### {% linkable_title Service `set_level` %}
|
||||||
|
|
||||||
|
You can alter log level for one or several components using the service
|
||||||
|
``logger.set_level``. It accepts the same format as ``logs`` in the configuration.
|
||||||
|
|
||||||
|
An example call might look like this:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
service: logger.set_level
|
||||||
|
data:
|
||||||
|
homeassistant.components: warning
|
||||||
|
homeassistant.components.media_player.yamaha: debug
|
||||||
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue