{ "info": { "author": "Luigi Mazari Villanova", "author_email": "luigi.mazari@cnr.it", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.9", "Framework :: Django :: 2.0", "Framework :: Django :: 2.1", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Site Management", "Topic :: Scientific/Engineering" ], "description": "======================\nDjango Log to Telegram\n======================\n\nThis is a simple logger that sends 500 exceptions to a Telegram bot of your choice.\n\nQuick start\n-----------\n\nInstall django-log-to-telegram:\n\n.. code:: bash\n\n pip install -e 'git+https://github.com/thela/django_log_to_telegram.git#egg=django_log_to_telegram'\n\n1. register a bot on Telegram (`with BotFather `_), start a chat with it and put\nthe Api token in settings.py:\n\n.. code:: python\n\n LOG_TO_TELEGRAM_BOT_TOKEN = '12345678:replace-me-with-real-token'\n\nDifferent errors will be fired if the BOT_TOKEN is not active or if there is no chat active with it.\n\n2. add the 'django_log_to_telegram' to your INSTALLED_APPS setting:\n\n.. code:: python\n\n INSTALLED_APPS = [\n ...\n 'django_log_to_telegram',\n ...\n ]\n\n3. add the `django_log_to_telegram.log.AdminTelegramHandler` to your app's logging configuration, for example:\n\n.. code:: python\n\n LOGGING = {\n 'version': 1,\n 'disable_existing_loggers': False,\n 'filters': {\n 'require_debug_false': {\n '()': 'django.utils.log.RequireDebugFalse'\n }\n },\n 'handlers': {\n 'telegram_log': {\n 'level': 'ERROR',\n 'filters': ['require_debug_false'],\n 'class': 'django_log_to_telegram.log.AdminTelegramHandler',\n 'bot_token': LOG_TO_TELEGRAM_BOT_TOKEN,\n }\n },\n 'loggers': {\n 'django.request': {\n 'handlers': ['telegram_log'],\n 'level': 'ERROR',\n 'propagate': True,\n },\n },\n }\n\nif you want to test this logger in a debug environment, just remove the `filters': ['require_debug_false'],` line in the\n'handlers' dictionary.\n\n4. Run `python manage.py migrate` to create the django_log_to_telegram models.\n\nIf everything went well, you bot will then begin sendind messages on 500 exceptions.\n\nThere is a *very basic* test app provided in the folder test_app. It is configured to send errors to telegram even with\nDEBUG active, so that it can be useful with just a\n\n.. code:: python\n\n ./manage.py runserver\n\nIt does not provide any database configuration, and most of Django basic settings are stripped out, so any use of it\noutside the very basic testing of the django_log_to_telegram mechanism is deprecated to say the least.\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "GNU General Public License v3 (GPLv3)", "maintainer": "", "maintainer_email": "", "name": "django-log-to-telegram", "package_url": "https://pypi.org/project/django-log-to-telegram/", "platform": "", "project_url": "https://pypi.org/project/django-log-to-telegram/", "project_urls": null, "release_url": "https://pypi.org/project/django-log-to-telegram/2019.4.1/", "requires_dist": [ "Django (>1.9)", "requests" ], "requires_python": "", "summary": "a simple logger that sends 500 exceptions to a Telegram bot of your choice.", "version": "2019.4.1" }, "last_serial": 4694454, "releases": { "2019.4.1": [ { "comment_text": "", "digests": { "md5": "0b84bd60f84975c9f9058c1d5b1cc865", "sha256": "54d42b317b50bff56714b554d9d544fa6a75874350e80f525b331ecae5dc432a" }, "downloads": -1, "filename": "django_log_to_telegram-2019.4.1-py3-none-any.whl", "has_sig": false, "md5_digest": "0b84bd60f84975c9f9058c1d5b1cc865", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 17739, "upload_time": "2019-01-14T14:33:26", "url": "https://files.pythonhosted.org/packages/e5/02/645bf1b8112268ba1e154e6ca9f54ca91d0a14a578aae86c2699c2968e9e/django_log_to_telegram-2019.4.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "62989c707247408cc36af0417b18c8f5", "sha256": "470a1443064d18f8f7e9b18706fee83a0571a8396e0763fc42998a702fe3b541" }, "downloads": -1, "filename": "django-log-to-telegram-2019.4.1.tar.gz", "has_sig": false, "md5_digest": "62989c707247408cc36af0417b18c8f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17891, "upload_time": "2019-01-14T14:33:31", "url": "https://files.pythonhosted.org/packages/15/61/095aadc7a3eea8e3c0b4e5bab128c48a45833460567a9a1203082e92f21a/django-log-to-telegram-2019.4.1.tar.gz" } ], "2019.4.1b0": [ { "comment_text": "", "digests": { "md5": "495b5c678352e8db8e3ecd0449fda79c", "sha256": "1963642d755fccc992d8451a6aa617d743cf4979e5290093d8ee8dfba7da6507" }, "downloads": -1, "filename": "django_log_to_telegram-2019.4.1b0-py3-none-any.whl", "has_sig": false, "md5_digest": "495b5c678352e8db8e3ecd0449fda79c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 17764, "upload_time": "2019-01-14T14:33:25", "url": "https://files.pythonhosted.org/packages/8d/cf/5bdbee9221cf2c50dc02182e09700f3fc4a0b7396778deb9d1089e1e867f/django_log_to_telegram-2019.4.1b0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c43babaf6c0ecf0993cf4214f02b356b", "sha256": "d45a7cd1c0982d3a7273b571eabb11634ea7e8dd665e8a1432385be069fcd31b" }, "downloads": -1, "filename": "django-log-to-telegram-2019.4.1b0.tar.gz", "has_sig": false, "md5_digest": "c43babaf6c0ecf0993cf4214f02b356b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17906, "upload_time": "2019-01-14T14:33:29", "url": "https://files.pythonhosted.org/packages/ef/f1/0260d66e27939b22d4b403a3f45839e8b11c0a9ef6d2c8686b1e1baf377f/django-log-to-telegram-2019.4.1b0.tar.gz" } ], "2019.4b0": [ { "comment_text": "", "digests": { "md5": "ffbe6acaeecfa62184c6a6cd88901e92", "sha256": "e234e85366a212460933b3b978b05dd610f12a1a4b43086af189f7d8e4680dad" }, "downloads": -1, "filename": "django_log_to_telegram-2019.4b0-py3-none-any.whl", "has_sig": false, "md5_digest": "ffbe6acaeecfa62184c6a6cd88901e92", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16212, "upload_time": "2019-01-11T09:11:54", "url": "https://files.pythonhosted.org/packages/57/6f/a22c29293820db7979748b3047711a50c8ba38fd0b106d8e45ea4579439d/django_log_to_telegram-2019.4b0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cd8f39ab066fcc7b2a8ae36e5865656e", "sha256": "9f3a531ebdbbee53c21e6f1da19fa6f84fa2bc07615ce1c845ac14fdca414abb" }, "downloads": -1, "filename": "django-log-to-telegram-2019.4b0.tar.gz", "has_sig": false, "md5_digest": "cd8f39ab066fcc7b2a8ae36e5865656e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17052, "upload_time": "2019-01-11T09:11:56", "url": "https://files.pythonhosted.org/packages/68/bb/c498095cafcd9ef2f75929527190d63840c04b11f4b018c8af013dc58308/django-log-to-telegram-2019.4b0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0b84bd60f84975c9f9058c1d5b1cc865", "sha256": "54d42b317b50bff56714b554d9d544fa6a75874350e80f525b331ecae5dc432a" }, "downloads": -1, "filename": "django_log_to_telegram-2019.4.1-py3-none-any.whl", "has_sig": false, "md5_digest": "0b84bd60f84975c9f9058c1d5b1cc865", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 17739, "upload_time": "2019-01-14T14:33:26", "url": "https://files.pythonhosted.org/packages/e5/02/645bf1b8112268ba1e154e6ca9f54ca91d0a14a578aae86c2699c2968e9e/django_log_to_telegram-2019.4.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "62989c707247408cc36af0417b18c8f5", "sha256": "470a1443064d18f8f7e9b18706fee83a0571a8396e0763fc42998a702fe3b541" }, "downloads": -1, "filename": "django-log-to-telegram-2019.4.1.tar.gz", "has_sig": false, "md5_digest": "62989c707247408cc36af0417b18c8f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17891, "upload_time": "2019-01-14T14:33:31", "url": "https://files.pythonhosted.org/packages/15/61/095aadc7a3eea8e3c0b4e5bab128c48a45833460567a9a1203082e92f21a/django-log-to-telegram-2019.4.1.tar.gz" } ] }