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 56 forks source link

Additional information saved as part of "API Logs" model #92

Closed ttpge closed 3 weeks ago

ttpge commented 5 months ago

Hi,

Hope all's well.

How do I enhance the logger API to store additional information into the "API Logs" model?

For example, I want to add a new field onto the API Log model to store error conditions for later review. I suppose I can store this as part of the RESPONSE. However, I would like to save it in a different field.

Is this possible?

Cheers, Thuan

vishalanandl177 commented 3 months ago

Hi @ttpge You can create your model similar to exiting model and use signal to capture and store all the API events.

vishalanandl177 commented 3 weeks ago

Closing due to inactivity