{"id":20145419,"url":"https://github.com/cuongnb14/django-request-logging","last_synced_at":"2025-03-03T00:13:11.913Z","repository":{"id":196229910,"uuid":"695085175","full_name":"cuongnb14/django-request-logging","owner":"cuongnb14","description":"Django Request Logging is a Django app that logs detailed request information, such as URL, method, headers, and response time. It outputs logs to the console and can optionally store them in the database for long-term tracking","archived":false,"fork":false,"pushed_at":"2024-11-03T04:17:03.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-13T10:51:52.995Z","etag":null,"topics":["django","request-logging"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cuongnb14.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-22T10:16:54.000Z","updated_at":"2024-11-03T04:17:06.000Z","dependencies_parsed_at":"2024-11-03T05:17:23.447Z","dependency_job_id":"30dfcf3b-e504-40f8-bf16-54d20eb80615","html_url":"https://github.com/cuongnb14/django-request-logging","commit_stats":null,"previous_names":["cuongnb14/django-request-logging"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuongnb14%2Fdjango-request-logging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuongnb14%2Fdjango-request-logging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuongnb14%2Fdjango-request-logging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuongnb14%2Fdjango-request-logging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cuongnb14","download_url":"https://codeload.github.com/cuongnb14/django-request-logging/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241587853,"owners_count":19986628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","request-logging"],"created_at":"2024-11-13T22:16:28.766Z","updated_at":"2025-03-03T00:13:11.889Z","avatar_url":"https://github.com/cuongnb14.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Django Request Logging\n===================\n\nDjango Request Logging is a Django app that logs detailed request information, such as URL, method, headers, and response time. It outputs logs to the console and can optionally store them in the database for long-term tracking, making it easier to monitor, debug, and analyze user interactions with your application.\n\nInstall\n=======\n\n::\n\n    pip install git+https://github.com/cuongnb14/django-request-logging.git@v1.2#egg=django-request-logging\n\nSetting\n=======\n\n.. code:: python\n\n    INSTALLED_APPS = [\n        'request_logging',\n        ...\n    ]\n\n    MIDDLEWARE = [\n        ...\n        'request_logging.middlewares.RequestLogMiddleware'\n    ]\n\n    REQUEST_LOGGING = {\n        'WHITELIST_PATHS': [\"/admin/jsi18n/\"],\n        'ENABLE_PYTHON_LOG': True,\n        'ENABLE_DB_LOG': True,\n        'DB_LOG_SAMPLE': 1,\n        'LOG_HEADER_KEYS': [\"HTTP_USER_AGENT\", \"HTTP_X_FORWARDED_FOR\", \"REMOTE_ADDR\", \"HTTP_REFERER\"],\n    }\n\n\nRun migrate:\n\n::\n\n    python3 manage.py migrate\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuongnb14%2Fdjango-request-logging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcuongnb14%2Fdjango-request-logging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuongnb14%2Fdjango-request-logging/lists"}