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
I recently added support for Notify into notifiers which is a well known Python library that simplifies the process of sending notifications through various services.
With the inclusion of Notify you can now use it just like any other provider.
Make sure you install notifiers from git to grab the latest version, which supports notify.
Since notifiers is so widespread, it opens many cool new ways to use Notify like integrations into loguru which is a powerful and easy to use logging library.
Here is an example on how to send error messages to a notify instance.
fromloguruimportloggerfromnotifiers.loggingimportNotificationHandlerparams= {
"base_url": "https://your-notify-instance.com",
"title": "Application error"
}
handler=NotificationHandler("notify", defaults=params)
logger.add(handler, level="ERROR")
# Now on every error you get a notify notificationlogger.error("test")
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I recently added support for Notify into notifiers which is a well known Python library that simplifies the process of sending notifications through various services.
With the inclusion of Notify you can now use it just like any other provider.
Make sure you install notifiers from git to grab the latest version, which supports notify.
Since notifiers is so widespread, it opens many cool new ways to use Notify like integrations into loguru which is a powerful and easy to use logging library.
Here is an example on how to send error messages to a notify instance.
Beta Was this translation helpful? Give feedback.
All reactions