DRF-API-Logger icon indicating copy to clipboard operation
DRF-API-Logger copied to clipboard

Additional information saved as part of "API Logs" model

Open ttpge opened this issue 1 year ago • 1 comments

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

ttpge avatar Mar 05 '24 03:03 ttpge

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

vishalanandl177 avatar Apr 24 '24 16:04 vishalanandl177

Closing due to inactivity

vishalanandl177 avatar Jul 28 '24 13:07 vishalanandl177