-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Add regex-based filters to logger comp 8000 onent #48439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hey there @home-assistant/core, mind taking a look at this pull request as its been labeled with an integration ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see comment above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Proposed change
Adds a section to component
logger
configuration for regex filters to suppress log messages based on patterns.I've been using home-assistant for a variety of "mission critical" automations (i.e.: if these automations don't run, my pipes might freeze!). I'd like to set up a trigger based on the logging service that texts me on any log message, but it is unfortunately quite noisy. A degree of log suppression is provided by setting service log levels, but I would like finer-grained control.
Docs PR: home-assistant/home-assistant.io#17160
Type of change
Example entry for
configuration.yaml
:Additional information
Implemented with care not to introduce any breaking changes :)
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: