{ "info": { "author": "Caleb Hattingh", "author_email": "caleb.hattingh@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": ".. image:: https://travis-ci.org/cjrh/perflog.svg?branch=master\n :target: https://travis-ci.org/cjrh/perflog\n\n.. image:: https://coveralls.io/repos/github/cjrh/perflog/badge.svg?branch=master\n :target: https://coveralls.io/github/cjrh/perflog?branch=master\n\n.. image:: https://img.shields.io/pypi/pyversions/perflog.svg\n :target: https://pypi.python.org/pypi/perflog\n\n.. image:: https://img.shields.io/github/tag/cjrh/perflog.svg\n :target: https://img.shields.io/github/tag/cjrh/perflog.svg\n\n.. image:: https://img.shields.io/badge/install-pip%20install%20perflog-ff69b4.svg\n :target: https://img.shields.io/badge/install-pip%20install%20perflog-ff69b4.svg\n\n.. image:: https://img.shields.io/pypi/v/perflog.svg\n :target: https://img.shields.io/pypi/v/perflog.svg\n\n\nperflog\n=======\n\n**Structured logging support for application performance and monitoring data**\n\nDemo\n----\n\n.. code:: python\n\n \"\"\" My Application \"\"\"\n\n import perflog\n\n def main():\n \n\n\n if __name__ == '__main__':\n perflog.set_and_forget()\n main()\n\n\nThere are several parameters for the ``set_and_forget`` method that can be\nused to change the default behaviour. For example, by default the performance\nlog messages will be written every 60 seconds.\n\nNote: in addition to writing performance data to the log message itself,\n``perflog`` also adds *extra logrecord fields*. This means that if you're\nusing a log formatter that writes out all the fields in some kind of\nstructured format (say, logstash_formatter), you will find that the performance\ndata will also be recorded in those fields and can therefore be accessed in\ntools like Kibana.\n\nAcknowledgements\n----------------\n\n``perflog`` uses `psutil `_ to\nobtain all the process-related information. Thanks Giampaolo!\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cjrh/perflog", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "perflog", "package_url": "https://pypi.org/project/perflog/", "platform": "", "project_url": "https://pypi.org/project/perflog/", "project_urls": { "Homepage": "https://github.com/cjrh/perflog" }, "release_url": "https://pypi.org/project/perflog/2017.8.7/", "requires_dist": [ "psutil", "typing; python_version < '3.5'", "enum34; python_version <= '2.7'" ], "requires_python": "", "summary": "Performance stats logger ", "version": "2017.8.7" }, "last_serial": 3080289, "releases": { "2017.8.1": [ { "comment_text": "", "digests": { "md5": "b13810b979fce3695008a9862d0da131", "sha256": "1c7be15614bdf632283c730dfd614919363c62fd6b56fed6dcec766dd105c6c5" }, "downloads": -1, "filename": "perflog-2017.8.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b13810b979fce3695008a9862d0da131", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 17319, "upload_time": "2017-08-02T06:40:49", "url": "https://files.pythonhosted.org/packages/36/3c/b230f2caff082b41bb7ffacd966d4187b72497f73d47043c86c422777876/perflog-2017.8.1-py2.py3-none-any.whl" } ], "2017.8.2": [ { "comment_text": "", "digests": { "md5": "2ae9fdc2a1458164db259a854245ed93", "sha256": "0b06e1e348aac2312f6fd8561e9f427aee1bb038e66b64f13f4ef45fec2da428" }, "downloads": -1, "filename": "perflog-2017.8.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2ae9fdc2a1458164db259a854245ed93", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 17479, "upload_time": "2017-08-02T06:43:30", "url": "https://files.pythonhosted.org/packages/c3/80/2c2299c752da49749f086642bc9f6c2e5986c8e391dbe3c3377142099222/perflog-2017.8.2-py2.py3-none-any.whl" } ], "2017.8.7": [ { "comment_text": "", "digests": { "md5": "23f091f4e7ca2be7932ac767055a053f", "sha256": "88e45f8246a221865bc39864654b3cd2fd1f2d6522afef10afeb40944342e202" }, "downloads": -1, "filename": "perflog-2017.8.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "23f091f4e7ca2be7932ac767055a053f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 18487, "upload_time": "2017-08-08T05:48:02", "url": "https://files.pythonhosted.org/packages/14/5f/851bde5b9c746201975814568657886421b61cb19ed10f24ea3029931389/perflog-2017.8.7-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "23f091f4e7ca2be7932ac767055a053f", "sha256": "88e45f8246a221865bc39864654b3cd2fd1f2d6522afef10afeb40944342e202" }, "downloads": -1, "filename": "perflog-2017.8.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "23f091f4e7ca2be7932ac767055a053f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 18487, "upload_time": "2017-08-08T05:48:02", "url": "https://files.pythonhosted.org/packages/14/5f/851bde5b9c746201975814568657886421b61cb19ed10f24ea3029931389/perflog-2017.8.7-py2.py3-none-any.whl" } ] }