You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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 itslogging
configuration. An application could then use itslogging
configuration to send notifications, for example for all messages of levelWARNING
orERROR
, or any of the other useful wayslogging
can be configured.The text was updated successfully, but these errors were encountered: