How to Log Django Rest Framework APIs into the Database | DRF API Logger

preview_player
Показать описание
Learn how to log all the Django Rest Framework APIs into the database using DRF API Logger.
This is very useful to identify how many APIs are failed and how many APIs are unauthorized and how many APIs are getting called each day etc.
It logs all the API information for content-type "application/json".

1. URL
2. Request Body
3. Request Headers
4. Request Method
5. API Response
6. Status Code
7. API Call Time
8. Server Execution Time
9. Client IP Address
Рекомендации по теме
Комментарии
Автор

I followed all the steps, but I can't see any logs on admin portal. I can see the model 'API Logs'. But not seeing any logs. Please suggest.

ashleshakharwale
Автор

It's even better if support custom api log table.

viokingtung
Автор

Thank you for your video. My question; how do you log this into a file?

tolulopeayemobola
welcome to shbcf.ru