Using Mongo or other data storeΒΆ
Using any data store as easy as implementing all the methods from ModelMixin
from flask_error_monitor import ModelMixin
class CustomModel(ModelMixin):
objects = {}
@classmethod
def delete(cls, rhash):
...
@classmethod
def create_or_update(cls, rhash, host, path, method, request_data, exception_name, traceback):
...
@classmethod
def get_exceptions_per_page(cls, page_number=1):
...
@classmethod
def get(cls, rhash):
...
# create app with our own model
error_monitor = AppErrorMonitor(app=app, model=CustomModel)