From 25c5fb48d517fffc13e0efdcc39aacef768ccae3 Mon Sep 17 00:00:00 2001 From: akasma74 Date: Tue, 14 Jan 2020 19:59:17 +0000 Subject: [PATCH] Add useful logging example (#11742) I never knew it's possible to set per-script log level for python scripts so I think it's worth at least to add such an example to this page --- source/_integrations/logger.markdown | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/_integrations/logger.markdown b/source/_integrations/logger.markdown index 3c997ae6ed0..a3296894515 100644 --- a/source/_integrations/logger.markdown +++ b/source/_integrations/logger.markdown @@ -47,6 +47,12 @@ logger: # log level for MQTT integration homeassistant.components.mqtt: warning + # log level for all python scripts + homeassistant.components.python_script: warning + + # individual log level for this python script + homeassistant.components.python_script.my_new_script.py: debug + # log level for SmartThings lights homeassistant.components.smartthings.light: info