#Logger filter: are namespaces hierarchical? can I specify homeassistant.components: ?

1 messages · Page 1 of 1 (latest)

south narwhal
#

Hi there, title should say it all, I'm wondering if this kind of config is possible or not

logger:
  default: warning
  filters:
    homeassistant.components.automation:
      - "Failed to send request: device did not respond"
    homeassistant.components.script:
      - "Failed to send request: device did not respond"
    homeassistant.helpers.script:
      - "Failed to send request: device did not respond"
    zigpy.zcl:
      - "Failed to send request"

this way I wouldn't have to specify the complete namespace for every single script homeassistant.components.scripts.set_room_brightness etc.
I've tried this in my configuration.yaml but it does not filter out the messages I want filtered. The regex should be fine I think, so that's why I'm asking if my attempt is even possible at all. Thanks in advance :)

south narwhal
#

Anyone know something? Should I clarify my question a bit?

velvet wind
#

That should be fine but I think you might need to escape the : as it’s regex matching