mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 21:36:52 +00:00
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
This commit is contained in:
parent
2a60a44b5e
commit
25c5fb48d5
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user