mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
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:
parent
a8767d55ea
commit
f73c073a80
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user