mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-09 18:36:51 +00:00
Add docs for logger.set_level (#2143)
This commit is contained in:
parent
2810ca5e91
commit
01ada702bb
@ -54,3 +54,16 @@ Possible log severities are:
|
||||
- debug
|
||||
- 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…
x
Reference in New Issue
Block a user