From f73c073a8097e8cde4b37f049aa0ef3614750983 Mon Sep 17 00:00:00 2001 From: Jeff Irion Date: Tue, 18 Jun 2019 14:39:54 -0700 Subject: [PATCH] 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 --- source/_components/logger.markdown | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/source/_components/logger.markdown b/source/_components/logger.markdown index bfeb048e5a1..9d186deb679 100644 --- a/source/_components/logger.markdown +++ b/source/_components/logger.markdown @@ -33,8 +33,7 @@ components: logger: default: info logs: - homeassistant.components.device_tracker: critical - homeassistant.components.camera: critical + homeassistant.components.yamaha: critical custom_components.my_integration: critical ``` @@ -46,11 +45,20 @@ components: logger: default: critical logs: - homeassistant.components: info - homeassistant.components.rfxtrx: debug - homeassistant.components.device_tracker: critical - homeassistant.components.camera: critical + # log level for HA core + homeassistant.core: fatal + + # 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 + + # log level for the `aiohttp` Python package + aiohttp: error ``` {% configuration %} @@ -107,9 +115,11 @@ An example call might look like this: ```yaml service: logger.set_level data: - homeassistant.components: warning - homeassistant.components.media_player.yamaha: debug + homeassistant.core: fatal + homeassistant.components.mqtt: warning + homeassistant.components.smartthings.light: info custom_components.my_integration: debug + aiohttp: error ``` The log information are stored in the