{"id":29572676,"url":"https://github.com/accelbyte/justice-python-common-log","last_synced_at":"2025-07-19T05:10:51.193Z","repository":{"id":42371453,"uuid":"446729996","full_name":"AccelByte/justice-python-common-log","owner":"AccelByte","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-02T03:27:07.000Z","size":56,"stargazers_count":0,"open_issues_count":2,"forks_count":2,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-01-02T04:21:33.826Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AccelByte.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.rst","contributing":"CONTRIBUTING.rst","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":"AUTHORS.rst","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-11T08:04:35.000Z","updated_at":"2025-01-02T03:12:40.000Z","dependencies_parsed_at":"2025-01-02T04:21:25.884Z","dependency_job_id":"16d0c85c-e96c-4de7-97ef-ad1e8c2d7e1c","html_url":"https://github.com/AccelByte/justice-python-common-log","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/AccelByte/justice-python-common-log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AccelByte%2Fjustice-python-common-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AccelByte%2Fjustice-python-common-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AccelByte%2Fjustice-python-common-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AccelByte%2Fjustice-python-common-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AccelByte","download_url":"https://codeload.github.com/AccelByte/justice-python-common-log/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AccelByte%2Fjustice-python-common-log/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265892509,"owners_count":23845032,"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":[],"created_at":"2025-07-19T05:10:50.699Z","updated_at":"2025-07-19T05:10:51.170Z","avatar_url":"https://github.com/AccelByte.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=========================\njustice-python-common-log\n=========================\n\n.. image:: https://img.shields.io/pypi/pyversions/justice_python_common_log\n        :target: https://pypi.python.org/pypi/justice_python_common_log\n        :alt: Python Version\n\n.. image:: https://img.shields.io/pypi/l/justice_python_common_log\n        :target: https://github.com/AccelByte/justice-python-common-log/blob/main/LICENSE\n        :alt: License\n\n\n\n\nJustice common log format for python\n\n\n* Free software: Apache Software License 2.0\n\n\nUsage in flask\n~~~~~~~~~~~~~~\n\n**Basic**\n\n.. code:: python\n\n   import flask\n   from justice_python_common_log.flask import Log\n\n   app = flask.Flask(__name__)\n   Log(app)\n\n\n**Exclude specific endpoint**\n\n.. code:: python\n\n   Log(app, excluded_paths=['/swaggerui.*', '/analytics/apidocs'])\n\n\n**Exclude specific agent**\n\n.. code:: python\n\n   Log(app, excluded_agents=['ELB'])\n\n\nUsage in FastAPI\n~~~~~~~~~~~~~~\n\n**Basic**\n\n.. code:: python\n\n   from fastapi import FastAPI\n   from justice_python_common_log.fastapi import Log\n\n   app = FastAPI()\n   Log(app)\n\n\n**Exclude specific endpoint**\n\n.. code:: python\n\n   Log(app, excluded_paths=['/swaggerui.*', '/game-telemetry/apidocs'])\n\n\n**Exclude specific agent**\n\n.. code:: python\n\n   Log(app, excluded_agents=['ELB'])\n\n\nEnvironment variables\n~~~~~~~~~~~~~~~~~~~~~\n\n**FULL_ACCESS_LOG_ENABLED**\n: Enable full access log mode. Default: *false*.\n\n**FULL_ACCESS_LOG_SUPPORTED_CONTENT_TYPES**\n: Supported content types to shown in request_body and response_body log.\nDefault:\n*application/json,application/xml,application/x-www-form-urlencoded,text/plain,text/html*.\n\n**FULL_ACCESS_LOG_MAX_BODY_SIZE**\n: Maximum size of request body or response body that will be processed,\nwill be ignored if exceed more than it. Default: *10240 bytes*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faccelbyte%2Fjustice-python-common-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faccelbyte%2Fjustice-python-common-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faccelbyte%2Fjustice-python-common-log/lists"}