Skip to content
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

feat(log): Add a logging handler for use from Python #275

Open
rpatterson opened this issue Aug 23, 2024 · 1 comment
Open

feat(log): Add a logging handler for use from Python #275

rpatterson opened this issue Aug 23, 2024 · 1 comment

Comments

@rpatterson
Copy link

Add a logging.Handler sub-class so that Python projects can re-use a user's ~/.ntfy.yml configuration to send application-specific notifications using its logging configuration. An application could then use its logging configuration to send notifications, for example for all messages of level WARNING or ERROR, or any of the other useful ways logging can be configured.

@rpatterson
Copy link
Author

Soon, I need to add notifications to a Python CLI utility. I use and love ntfy for notifications from my shell, so I intend to use it in that project using the approach in the description. I could implement it as a separate distribution/package but if the maintainers are interested in merging an accepted PR adding that to ntfy itself, just LMK and I'll do that instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant