vishalanandl177 / DRF-API-Logger

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

It doesn't work properly. #82

Closed heesubsong closed 1 year ago

heesubsong commented 1 year ago

Hello, I'm trying to use drf-log in django.

It doesn't work properly.

The database is PostgreSQL and the table was created normally after migration.

API Logs can be checked properly on the admin page as well.

No matter what action you take, data will not accumulate.

Where should I fix it?

Or where can I find out by logging?


Django 4.0.4 drf-api-logger 1.1.14

INSTALLED_APPS = [ "django.contrib.admin", "django.contrib.auth", "django.contrib.contenttypes", "django.contrib.sessions", ... "drf_api_logger", # drf ]

MIDDLEWARE = [ "django.middleware.security.SecurityMiddleware", "django.contrib.sessions.middleware.SessionMiddleware", "whitenoise.middleware.WhiteNoiseMiddleware", ... "drf_api_logger.middleware.api_logger_middleware.APILoggerMiddleware", # drf ]

API logs DRF_API_LOGGER_DATABASE = True DRF_LOGGER_INTERVAL = 1

heesubsong commented 1 year ago

Solved the problem.