{"id":21326020,"url":"https://github.com/propylon/django-logging-endpoint","last_synced_at":"2025-07-12T06:32:50.379Z","repository":{"id":57420681,"uuid":"210314603","full_name":"propylon/django-logging-endpoint","owner":"propylon","description":"Endpoints to receive logs and push them to a configurable django logger","archived":false,"fork":false,"pushed_at":"2020-01-10T23:10:07.000Z","size":222,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-16T00:41:38.715Z","etag":null,"topics":["django","logging","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/propylon.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-23T09:23:40.000Z","updated_at":"2020-01-09T22:33:05.000Z","dependencies_parsed_at":"2022-09-18T11:50:17.987Z","dependency_job_id":null,"html_url":"https://github.com/propylon/django-logging-endpoint","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/propylon%2Fdjango-logging-endpoint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/propylon%2Fdjango-logging-endpoint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/propylon%2Fdjango-logging-endpoint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/propylon%2Fdjango-logging-endpoint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/propylon","download_url":"https://codeload.github.com/propylon/django-logging-endpoint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225802682,"owners_count":17526452,"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","logging","python"],"created_at":"2024-11-21T21:08:16.951Z","updated_at":"2024-11-21T21:08:17.417Z","avatar_url":"https://github.com/propylon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"django-logging-endpoint\n=======================\n\n\u003e Provide an endpoint to receive logs and push them to a configurable django logger\n\n.. image:: https://travis-ci.org/propylon/django-logging-endpoint.svg?branch=master\n    :target: https://travis-ci.org/propylon/django-logging-endpoint\n\nUsage\n-----\n\nInstallation\n************\n1. Install the package::\n\n    pip install django-logging-endpoint\n\n2. Install the application by adding it to the INSTALLED_APPS setting::\n\n    INSTALLED_APPS += ('logging_endpoint',)\n\n3. Set the logger name, if you want to send the messages to a specific one::\n\n    LOGGING_ENDPOINT_LOGGER = 'LoggingEndpoint'\n\n4. Set the log message handler function, if you want to customize the parsing of your log messages::\n\n    LOGGING_ENDPOINT_MESSAGE_HANDLER = 'logging_endpoint.message_handler.default_handler'\n\n5. Add the url to your urls.py::\n\n    from django.conf.urls import include\n\n    urlpatterns += url(r'^logs', include('logging_endpoint.urls'))\n\nEndpoints\n*********\n\nroot\n^^^^\nThe root endpoint of :code:`django-logging-endpoint` receives a json message\nwith the logs to be sent to the configured logger::\n\n    {\n        'message':   'my log message',\n        'logger':    'user interaction',\n        'loglevel':  'error',\n        'timestamp': '2020-01-01T12:00Z'\n    }\n\nBy default, a list of logs can be received and will be expanded to the Django\nlogger. See the documentation's settings chapter for more information on that.\n\nDevelopment\n-----------\n\nMakefile\n********\n\nThis project uses a Makefile for various tasks. Some of the available tasks\nare listed below.\n\n* `make clean` - Clean build artifacts out of your project\n* `make test` - Run Tests\n* `make plain-test` - Run Tests without rebuilding the project\n* `make sdist` - Build a Python source distribution\n* `make docs` - Build the Sphinx documentation\n* `make lint` - Get a codestyle report about your code\n* `make plain-lint` - Get a codestyle report without rebuilding the project\n* `make` - Equivalent to `make test lint docs sdist`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpropylon%2Fdjango-logging-endpoint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpropylon%2Fdjango-logging-endpoint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpropylon%2Fdjango-logging-endpoint/lists"}