vishalanandl177 / DRF-API-Logger

An API Logger for your Django Rest Framework project.
https://github.com/vishalanandl177/DRF-API-Logger
Apache License 2.0
303 stars 57 forks source link

Remove old logs #79

Closed gruberrro closed 8 months ago

gruberrro commented 1 year ago

To be honest I'm not sure if this feature is implemented, but would be great to have possibility to remove old records with some kind of setting...

laugrean commented 1 year ago

Or maybe auto-archive into backup table. This would help a lot, for statistics later on

vishalanandl177 commented 1 year ago

I'm already planning this feature. In the next release, it will be available.

laugrean commented 9 months ago

Any updates on this when this will be implemanted approximately?

gruberrro commented 9 months ago

JFYI we decided to run celery beat which is removing old records every 24h

vishalanandl177 commented 9 months ago

Some enterprise companies suggested not to add removal of old logs as a part of the application. This can cause issues in their compliance. Removal of logs should be a separate application (or micro-service).