{"id":16550592,"url":"https://github.com/agusmakmun/django-log-viewer","last_synced_at":"2025-04-07T18:13:05.207Z","repository":{"id":34306326,"uuid":"176689129","full_name":"agusmakmun/django-log-viewer","owner":"agusmakmun","description":"Django Log Viewer allows you to read \u0026 download log files in the admin page","archived":false,"fork":false,"pushed_at":"2023-08-14T08:42:17.000Z","size":1187,"stargazers_count":77,"open_issues_count":15,"forks_count":31,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-31T17:19:39.658Z","etag":null,"topics":["django","django-admin","django-admin-log","django-log","django-log-viewer","django-logger","django-logging","log-viewer","logger"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/django-log-viewer/","language":"JavaScript","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/agusmakmun.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":"2019-03-20T08:33:07.000Z","updated_at":"2025-03-27T22:23:07.000Z","dependencies_parsed_at":"2024-06-18T20:00:17.698Z","dependency_job_id":null,"html_url":"https://github.com/agusmakmun/django-log-viewer","commit_stats":{"total_commits":53,"total_committers":9,"mean_commits":5.888888888888889,"dds":"0.39622641509433965","last_synced_commit":"4088107960be15fbd0bb5cf3ae1ad0f1db93629e"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agusmakmun%2Fdjango-log-viewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agusmakmun%2Fdjango-log-viewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agusmakmun%2Fdjango-log-viewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agusmakmun%2Fdjango-log-viewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agusmakmun","download_url":"https://codeload.github.com/agusmakmun/django-log-viewer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247704571,"owners_count":20982298,"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","django-admin","django-admin-log","django-log","django-log-viewer","django-logger","django-logging","log-viewer","logger"],"created_at":"2024-10-11T19:34:56.049Z","updated_at":"2025-04-07T18:13:05.180Z","avatar_url":"https://github.com/agusmakmun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"=================\nDjango Log Viewer\n=================\n\n|pypi version| |license| |build status|\n\nDjango Log Viewer allows you to read \u0026 download log files in the admin page by using ``DataTables``.\nThis project was modified from: https://bitbucket.org/inkalabsinc/django-log-viewer\n\n-----------------\n\n.. image:: https://i.imgur.com/kqxzIpX.png\n\n\nQuick start\n-----------\n\n1. Django Log Viewer is available directly from `PyPI`_:\n\n::\n\n    pip install django-log-viewer\n\n\n2. Add ``\"log_viewer\"`` to your ``INSTALLED_APPS`` setting like this\n\n::\n\n    INSTALLED_APPS = [\n        ...\n        \"log_viewer\",\n    ]\n\n\n3. Include the log viewer URLconf in your project ``urls.py`` like this\n\n::\n\n    path('logs/', include('log_viewer.urls')),\n\n\n4. In your ``settings.py`` file create the following value\n\n::\n\n    LOG_VIEWER_FILES = ['logfile1', 'logfile2', ...]\n    LOG_VIEWER_FILES_PATTERN = '*.log*'\n    LOG_VIEWER_FILES_DIR = 'logs/'\n    LOG_VIEWER_PAGE_LENGTH = 25       # total log lines per-page\n    LOG_VIEWER_MAX_READ_LINES = 1000  # total log lines will be read\n    LOG_VIEWER_FILE_LIST_MAX_ITEMS_PER_PAGE = 25 # Max log files loaded in Datatable per page\n    LOG_VIEWER_PATTERNS = ['[INFO]', '[DEBUG]', '[WARNING]', '[ERROR]', '[CRITICAL]']\n    LOG_VIEWER_EXCLUDE_TEXT_PATTERN = None  # String regex expression to exclude the log from line\n\n    # Optionally you can set the next variables in order to customize the admin:\n    LOG_VIEWER_FILE_LIST_TITLE = \"Custom title\"\n    LOG_VIEWER_FILE_LIST_STYLES = \"/static/css/my-custom.css\"\n\n\n5. Create/register the logging\n\n::\n\n    import logging\n    logger = logging.getLogger('LoggerName')\n    logger.info('The info message')\n    logger.warning('The warning message')\n    logger.error('The error message')\n\n6. Deploy static files by running the command\n\n::\n\n    python manage.py collectstatic\n\n\n7. Start the development server and visit http://127.0.0.1:8000/logs/\n\n\n.. |pypi version| image:: https://img.shields.io/pypi/v/django-log-viewer.svg\n   :target: https://pypi.python.org/pypi/django-log-viewer\n\n.. |license| image:: https://img.shields.io/badge/license-MIT-green.svg\n   :target: https://raw.githubusercontent.com/agusmakmun/django-log-viewer/master/LICENSE\n\n.. |build status| image:: https://img.shields.io/github/actions/workflow/status/agusmakmun/django-log-viewer/run-tests.yml?branch=master\n   :target: https://github.com/agusmakmun/django-log-viewer/actions/workflows/run-tests.yml\n\n.. _`PyPI`: https://pypi.python.org/pypi/django-log-viewer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagusmakmun%2Fdjango-log-viewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagusmakmun%2Fdjango-log-viewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagusmakmun%2Fdjango-log-viewer/lists"}