{"id":37066551,"url":"https://github.com/jonathadv/django-logger-panel","last_synced_at":"2026-01-14T07:48:52.406Z","repository":{"id":50945999,"uuid":"370114581","full_name":"jonathadv/django-logger-panel","owner":"jonathadv","description":"An easy way to change the log level in runtime","archived":false,"fork":false,"pushed_at":"2021-06-04T15:14:25.000Z","size":990,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-07T19:56:02.866Z","etag":null,"topics":["django","django-rest-framework","library","logging","python","python3"],"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/jonathadv.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2021-05-23T17:25:38.000Z","updated_at":"2022-05-11T16:35:07.000Z","dependencies_parsed_at":"2022-08-26T13:12:15.758Z","dependency_job_id":null,"html_url":"https://github.com/jonathadv/django-logger-panel","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/jonathadv/django-logger-panel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathadv%2Fdjango-logger-panel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathadv%2Fdjango-logger-panel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathadv%2Fdjango-logger-panel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathadv%2Fdjango-logger-panel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonathadv","download_url":"https://codeload.github.com/jonathadv/django-logger-panel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathadv%2Fdjango-logger-panel/sbom","scorecard":{"id":530155,"data":{"date":"2025-08-11","repo":{"name":"github.com/jonathadv/django-logger-panel","commit":"5c7e6b964c15a1da5f190b7744ac6521527f4dfb"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 1/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T05:29:47.278Z","repository_id":50945999,"created_at":"2025-08-20T05:29:47.279Z","updated_at":"2025-08-20T05:29:47.279Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413498,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","django-rest-framework","library","logging","python","python3"],"created_at":"2026-01-14T07:48:51.665Z","updated_at":"2026-01-14T07:48:52.398Z","avatar_url":"https://github.com/jonathadv.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![pypi version](https://img.shields.io/pypi/v/django-logger-panel.svg)](https://pypi.python.org/pypi/django-logger-panel) \n[![license](https://img.shields.io/pypi/l/django-logger-panel.svg)](https://pypi.python.org/pypi/django-logger-panel) \n[![python versions](https://img.shields.io/pypi/pyversions/django-logger-panel.svg)](https://pypi.python.org/pypi/django-logger-panel) \n[![Build Status](https://travis-ci.org/jonathadv/django-logger-panel.svg?branch=main)](https://travis-ci.org/jonathadv/django-logger-panel) \n[![Code coverage](https://codecov.io/gh/jonathadv/django-logger-panel/branch/main/graph/badge.svg)](https://codecov.io/gh/jonathadv/django-logger-panel)\n\n# django-logger-panel\n \nAn easy way to change the log level in runtime\n\n\n## Installation\n\n`pip install django-logger-panel`\n\n## Features\n- List all active loggers .\n- Change any logger level in run time.\n- Change all logger levels at once.\n- Display logger information.\n\n\n## Settings.py\n\n### INSTALLED_APPS\nAdd `loggerpanel` to installed apps\n\n```python\nINSTALLED_APPS = [\n    ...\n    'django_logger_panel',    \n]\n```\n\n### LOGGING\n\nMake sure the `root` has a `handler` set at the `LOGGING` dictionary in `settings.py`, as described in the [Django Documentation.](https://docs.djangoproject.com/en/3.2/topics/logging/#examples)\nThis is the `root` `logger` configuration and will allow all `loggers` with no `handler` to inherit it from the `root`. \n\n**Example:**\n\n```python\nLOGGING = {\n    'version': 1,\n    'disable_existing_loggers': False,\n    'formatters': {\n        'console': {\n            'format': '%(asctime)s %(levelname)-8s %(name)-12s %(message)s',\n        },\n    },\n    'handlers': {\n        'console': {\n            'class': 'logging.StreamHandler',\n            'formatter': 'console',\n        },\n    },\n    'root': {\n        'level': 'DEBUG',\n        'handlers': ['console'],\n    },\n}\n```\n\n### LOGGER_PANEL_BASE_URL\nOptionally, change the default base url `/loggers/` by setting the property `LOGGER_PANEL_BASE_URL`.\nThis variable is not required.\n\n```python\nLOGGER_PANEL_BASE_URL = \"/another-path/\"\n```\n\n## urls.py\n\nAdd the `django_logger_panel.urls` to the `urlpatterns`.\n\n```python\nurlpatterns = [\n    ...\n    path(\"\", include(\"django_logger_panel.urls\")),\n    ...\n\n]\n```\n\n## Screenshots\n\n### Logger Panel\n\n![logger panel](https://raw.githubusercontent.com/jonathadv/django-logger-panel/main/docs/img/loggers.png)\n\n\n### Logger Details\n\n![logger details](https://raw.githubusercontent.com/jonathadv/django-logger-panel/main/docs/img/logger-detail.png)\n\n## REST API\n\n### List loggers\n\n**Curl Example:**\n\n```bash\ncurl http://localhost:8000/loggers/ -H 'Accept:application/json'\n```\n\n**Response:**\n\n```json\n{\n  \"log_levels\": {\n    \"CRITICAL\": 50,\n    \"ERROR\": 40,\n    \"WARNING\": 30,\n    \"INFO\": 20,\n    \"DEBUG\": 10,\n    \"NOTSET\": 0\n  },\n  \"loggers\": [\n    {\n      \"name\": \"_all_loggers_\",\n      \"level\": {\n        \"code\": 0,\n        \"name\": \"NOTSET\"\n      },\n      \"effectiveLevel\": {\n        \"code\": 0,\n        \"name\": \"NOTSET\"\n      },\n      \"parent\": null\n    },\n    {\n      \"name\": \"root\",\n      \"level\": {\n        \"code\": 30,\n        \"name\": \"WARNING\"\n      },\n      \"effectiveLevel\": {\n        \"code\": 30,\n        \"name\": \"WARNING\"\n      },\n      \"parent\": null\n    },\n    {\n      \"name\": \"django\",\n      \"level\": {\n        \"code\": 20,\n        \"name\": \"INFO\"\n      },\n      \"effectiveLevel\": {\n        \"code\": 20,\n        \"name\": \"INFO\"\n      },\n      \"parent\": \"root\"\n    },\n    {\n      \"name\": \"django.db.backends\",\n      \"level\": {\n        \"code\": 0,\n        \"name\": \"NOTSET\"\n      },\n      \"effectiveLevel\": {\n        \"code\": 20,\n        \"name\": \"INFO\"\n      },\n      \"parent\": \"django\"\n    },\n    {\n      \"name\": \"django.request\",\n      \"level\": {\n        \"code\": 0,\n        \"name\": \"NOTSET\"\n      },\n      \"effectiveLevel\": {\n        \"code\": 20,\n        \"name\": \"INFO\"\n      },\n      \"parent\": \"django\"\n    },\n    {\n      \"name\": \"django.server\",\n      \"level\": {\n        \"code\": 20,\n        \"name\": \"INFO\"\n      },\n      \"effectiveLevel\": {\n        \"code\": 20,\n        \"name\": \"INFO\"\n      },\n      \"parent\": \"django\"\n    },\n    {\n      \"name\": \"django.security.csrf\",\n      \"level\": {\n        \"code\": 0,\n        \"name\": \"NOTSET\"\n      },\n      \"effectiveLevel\": {\n        \"code\": 20,\n        \"name\": \"INFO\"\n      },\n      \"parent\": \"django\"\n    },\n    {\n      \"name\": \"django.db.backends.schema\",\n      \"level\": {\n        \"code\": 0,\n        \"name\": \"NOTSET\"\n      },\n      \"effectiveLevel\": {\n        \"code\": 20,\n        \"name\": \"INFO\"\n      },\n      \"parent\": \"django.db.backends\"\n    }    \n  ]\n}\n\n\n```\n\n### Return a single logger\n\n**Curl Example:**\n\n```bash\ncurl http://localhost:8000/loggers/django.db.backends -H 'Accept:application/json'\n```\n\n**Response:**\n\n```json\n{\n  \"name\": \"django.db.backends\",\n  \"level\": {\n    \"code\": 0,\n    \"name\": \"NOTSET\"\n  },\n  \"effectiveLevel\": {\n    \"code\": 20,\n    \"name\": \"INFO\"\n  },\n  \"parent\": \"django\"\n}\n```\n\n### Change logger level\n\n**Curl Example:**\n\n```bash\ncurl -X POST http://localhost:8000/loggers/django.db.backends -d '{\"logger_level\": \"DEBUG\"}'\n```\n\n**Response:**\n\n```json\n{\n  \"name\": \"django.db.backends\",\n  \"level\": {\n    \"code\": 10,\n    \"name\": \"DEBUG\"\n  },\n  \"effectiveLevel\": {\n    \"code\": 10,\n    \"name\": \"DEBUG\"\n  },\n  \"parent\": \"django\"\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathadv%2Fdjango-logger-panel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonathadv%2Fdjango-logger-panel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathadv%2Fdjango-logger-panel/lists"}