{ "info": { "author": "Gergely Polonkai", "author_email": "gergely@polonkai.eu", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries" ], "description": "matrix_log_handler\n==================\n\n.. image:: https://img.shields.io/pypi/v/matrix_log_handler.svg?style=flat-square\n :target: https://pypi.python.org/pypi/matrix_log_handler\n\n.. image:: https://img.shields.io/pypi/wheel/matrix_log_handler.svg?style=flat-square\n :target: https://pypi.python.org/pypi/matrix_log_handler\n\n.. image:: https://img.shields.io/pypi/format/matrix_log_handler.svg?style=flat-square\n :target: https://pypi.python.org/pypi/matrix_log_handler\n\n.. image:: https://img.shields.io/pypi/pyversions/matrix_log_handler.svg?style=flat-square\n :target: https://pypi.python.org/pypi/matrix_log_handler\n\n.. image:: https://img.shields.io/pypi/status/matrix_log_handler.svg?style=flat-square\n :target: https://pypi.python.org/pypi/matrix_log_handler\n\nPython log handler that posts to a Matrix room. Posts to the Matrix API using\nhttps://github.com/matrix-org/matrix-python-sdk.\n\nInstallation\n------------\n\n.. code-block:: bash\n\n pip install matrix-log-handler\n\nOptions\n-------\n\nbase_url (required)\n~~~~~~~~~~~~~~~~~~~\n\nThe base URL of the Matrix Homeserver to use. Up to, but *not* including `/_matrix/client`.\n\nroom_id (required)\n~~~~~~~~~~~~~~~~~~\n\nThe room ID to use, like !ppfKZfDaaAaWzLkYrw:example.org.\n\ntoken\n~~~~~\n\nAn access token that can be used to send messages.\n\nusername and password\n~~~~~~~~~~~~~~~~~~~~~\n\nAn optional username/password to login with. Note that it advised *not* to use these parameters, but use ``token`` instead.\n\nfail_silent\n~~~~~~~~~~~\nDefaults to ``False``.\n\nIf your access token, username/password, or base URL is invalid, or for some other reason the API\ncall returns an error, this option will silently ignore the API error.\n\nIf you enable this setting, **make sure you have another log handler** that will also handle the\nsame log events, or they may be lost entirely.\n\nLogging configuration\n--------------------\n\nThis example will send log messages with the level of ERROR or above to Matrix.\n\n.. code-block:: python\n\n import logging\n\n logging.dictConfig({\n 'version': 1,\n 'disable_existing_loggers': False,\n 'handlers': {\n 'matrix-error': {\n 'class': 'matrix_log_handler.MatrixLogHandler',\n 'level': 'ERROR',\n 'base_url': 'https://matrix.example.com',\n 'room_id': '!ppfKZfDaaAaWzLkYrw:example.org'\n },\n 'loggers': {\n '': {\n 'handlers': ['matrix-error'],\n 'level': 'ERROR',\n 'propagate': True,\n },\n }\n }\n })\n\n logging.error('Hello, Matrix!')\n\nLicense\n-------\n\nApache 2.0\n\nMatrix-Python-SDK is also under Apache 2.0.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/getbenchmarked/matrix-log-handler", "keywords": "matrix,logging", "license": "", "maintainer": "", "maintainer_email": "", "name": "matrix-log-handler", "package_url": "https://pypi.org/project/matrix-log-handler/", "platform": "", "project_url": "https://pypi.org/project/matrix-log-handler/", "project_urls": { "Homepage": "https://github.com/getbenchmarked/matrix-log-handler" }, "release_url": "https://pypi.org/project/matrix-log-handler/0.3.1/", "requires_dist": [ "matrix-client (>=0.0.6)" ], "requires_python": "", "summary": "Log handler sending messages to a Matrix room", "version": "0.3.1" }, "last_serial": 4319525, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "9aaf531065b2f9bba0bdd5bcb8c5a6b4", "sha256": "a0456e3844dc249ec243215aecdb7e1ef9e959e9214ddda4255c9f6fa73b0cfe" }, "downloads": -1, "filename": "matrix_log_handler-0.1.0.tar.gz", "has_sig": false, "md5_digest": "9aaf531065b2f9bba0bdd5bcb8c5a6b4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6989, "upload_time": "2018-01-31T09:47:55", "url": "https://files.pythonhosted.org/packages/87/90/b48491b39c1bff2f71d83f039a8ab60dc8e4e2fc151a16d09a3ee9815b28/matrix_log_handler-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "aabd3a68e2e6cd2ee1e53c8674738e96", "sha256": "23a806cbee9c234c9d8bb0464a8e2d749537b6f3d65f868ccddf8f581355221e" }, "downloads": -1, "filename": "matrix_log_handler-0.1.1.tar.gz", "has_sig": false, "md5_digest": "aabd3a68e2e6cd2ee1e53c8674738e96", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7089, "upload_time": "2018-01-31T11:00:21", "url": "https://files.pythonhosted.org/packages/98/1d/a883b297862105f26f0148b1ba597d005eb170ead3705e59779122a7ab20/matrix_log_handler-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "49898050826e94f2326e07adacad18c7", "sha256": "8ce154396c0b889eed2240475f74b9fad1b1ee1b9b32db8a9fb014abca29d443" }, "downloads": -1, "filename": "matrix_log_handler-0.2.0.tar.gz", "has_sig": false, "md5_digest": "49898050826e94f2326e07adacad18c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7021, "upload_time": "2018-01-31T13:41:50", "url": "https://files.pythonhosted.org/packages/67/96/2f26ae332318ba7fe1c10229dcc7ecfcf7ca85cc5c4de1216b1c2ea65e96/matrix_log_handler-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "bfe2e26be5b73a0ae4e9a04a385435a8", "sha256": "99da675128ce8bb84c14a3697fbe0f4af015cb2510de44dfdbf08fc4ec802cae" }, "downloads": -1, "filename": "matrix_log_handler-0.3.0.tar.gz", "has_sig": false, "md5_digest": "bfe2e26be5b73a0ae4e9a04a385435a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7450, "upload_time": "2018-02-01T12:00:25", "url": "https://files.pythonhosted.org/packages/f7/90/375be0c2c4f8d85cd593249dc9060472207fb1a0739ec73a342c94dc5de7/matrix_log_handler-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "1c70df4223ae9dec851eb3e6b958259b", "sha256": "3c387e66894a78dca29a3aa45ebae74aefd71044c389057275729ba7e725f639" }, "downloads": -1, "filename": "matrix_log_handler-0.3.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1c70df4223ae9dec851eb3e6b958259b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3472, "upload_time": "2018-09-28T10:55:34", "url": "https://files.pythonhosted.org/packages/1e/8c/a53ab3f4ae7251f83670c1ac34fc12056d7d8efcbcc1733747bcfb98650f/matrix_log_handler-0.3.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "56e8f676646e75e31223bdf5f8b587ac", "sha256": "2beda6fbc41ae034c9f17a4be85f617c2abcc644e1faabcf8c6adeb06b983305" }, "downloads": -1, "filename": "matrix_log_handler-0.3.1.tar.gz", "has_sig": false, "md5_digest": "56e8f676646e75e31223bdf5f8b587ac", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7379, "upload_time": "2018-09-28T10:55:39", "url": "https://files.pythonhosted.org/packages/a9/0a/03a111f3648b83de725c0b52b1f96e68032696e548216307ff9723836359/matrix_log_handler-0.3.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1c70df4223ae9dec851eb3e6b958259b", "sha256": "3c387e66894a78dca29a3aa45ebae74aefd71044c389057275729ba7e725f639" }, "downloads": -1, "filename": "matrix_log_handler-0.3.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1c70df4223ae9dec851eb3e6b958259b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3472, "upload_time": "2018-09-28T10:55:34", "url": "https://files.pythonhosted.org/packages/1e/8c/a53ab3f4ae7251f83670c1ac34fc12056d7d8efcbcc1733747bcfb98650f/matrix_log_handler-0.3.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "56e8f676646e75e31223bdf5f8b587ac", "sha256": "2beda6fbc41ae034c9f17a4be85f617c2abcc644e1faabcf8c6adeb06b983305" }, "downloads": -1, "filename": "matrix_log_handler-0.3.1.tar.gz", "has_sig": false, "md5_digest": "56e8f676646e75e31223bdf5f8b587ac", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7379, "upload_time": "2018-09-28T10:55:39", "url": "https://files.pythonhosted.org/packages/a9/0a/03a111f3648b83de725c0b52b1f96e68032696e548216307ff9723836359/matrix_log_handler-0.3.1.tar.gz" } ] }