Why middleware?
I’d guess you should just configure logging (LOGGING setting) for Django and define your loggers, handlers, etc.
A handler then can be written to forward log messages to a database.
Why middleware?
I’d guess you should just configure logging (LOGGING setting) for Django and define your loggers, handlers, etc.
A handler then can be written to forward log messages to a database.