Notification notify featureΒΆ

Notifications are very useful in the case of failure, in different situations notification can be used to notify users using different channels like Slack, Email etc. Notification feature can be enabled by providing a NotificationMixin object.

from flask_error_monitor import NotificationMixin
class TestMail(NotificationMixin):
     def notify(self, message, exception):
         # what ever logic you want here

...
# create app
error_monitor = AppErrorMonitor(app=app, db=db, notifier=TestMail())
...