Fix logger examples (great migration) (#9567)

* Fix logger examples (great migration)

* Proposed change

Probably doesn't make a lot of sense to drill down into sub-packages of a component.

* Change examples

* Set log level for MQTT integration and SmartThings light component
This commit is contained in:
Jeff Irion 2019-06-18 14:39:54 -07:00 committed by Franck Nijhof
parent a8767d55ea
commit f73c073a80

View File

@ -33,8 +33,7 @@ components:
logger: logger:
default: info default: info
logs: logs:
homeassistant.components.device_tracker: critical homeassistant.components.yamaha: critical
homeassistant.components.camera: critical
custom_components.my_integration: critical custom_components.my_integration: critical
``` ```
@ -46,11 +45,20 @@ components:
logger: logger:
default: critical default: critical
logs: logs:
homeassistant.components: info # log level for HA core
homeassistant.components.rfxtrx: debug homeassistant.core: fatal
homeassistant.components.device_tracker: critical
homeassistant.components.camera: critical # log level for MQTT integration
homeassistant.components.mqtt: warning
# log level for SmartThings lights
homeassistant.components.smartthings.light: info
# log level for a custom component
custom_components.my_integration: debug custom_components.my_integration: debug
# log level for the `aiohttp` Python package
aiohttp: error
``` ```
{% configuration %} {% configuration %}
@ -107,9 +115,11 @@ An example call might look like this:
```yaml ```yaml
service: logger.set_level service: logger.set_level
data: data:
homeassistant.components: warning homeassistant.core: fatal
homeassistant.components.media_player.yamaha: debug homeassistant.components.mqtt: warning
homeassistant.components.smartthings.light: info
custom_components.my_integration: debug custom_components.my_integration: debug
aiohttp: error
``` ```
The log information are stored in the The log information are stored in the