{ "info": { "author": "Fl\u00e1vio Cardoso Ferreira Pontes", "author_email": "flaviocpontes@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "Simple Json Logging Formatter\n=============================\n\n|Build Status| |codecov| |Current version at PyPI|\n\nThis is a fork of ``simple_json_logger``, extracting the formatter into\nit's own project.\n\nIt formats the Python logging.Record into a JSON suitable for indexing\nengines like Logstash and AWS CloudWatch Logs.\n\nInstallation\n------------\n\n``pip install simple_json_log_formatter``\n\nUsage\n-----\n\nSimply set the formatter in a log handler and add it to the current\nlogger.\n\nFor example, to print the JSON logs to the current stream, set up the\nlogger with the following:\n\n.. code:: python\n\n import json, logging\n from simple_json_log_formatter import SimpleJsonFormatter\n handler = logging.StreamHandler()\n handler.setFormatter(SimpleJsonFormatter(json.dumps))\n logging.getLogger().addHandler(handler)\n logging.getLogger().setLevel(logging.INFO)\n\nAnd then simply call ``logging.info('TEST')``. It should print something\nlike this:\n\n``{\"timestamp\": \"2017-09-08T17:01:26.408975\", \"line_number\": 1, \"function\": \"\", \"module\": \"\", \"level\": \"INFO\", \"path\": \"\", \"msg\": \"TEST\"}``\n\nTesting\n-------\n\n``python setup.py test``\n\nCompatibility\n-------------\n\nPython versions 2.7 and 3.4+ are supported.\n\n.. |Build Status| image:: https://travis-ci.org/flaviocpontes/simple_json_log_formatter.svg?branch=master\n :target: https://travis-ci.org/flaviocpontes/simple_json_log_formatter\n.. |codecov| image:: https://codecov.io/gh/flaviocpontes/simple_json_log_formatter/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/flaviocpontes/simple_json_log_formatter\n.. |Current version at PyPI| image:: https://img.shields.io/pypi/v/simple_json_log_formatter.svg\n :target: https://pypi.python.org/pypi/simple_json_log_formatter\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/flaviocpontes/simple_json_log_formatter/archive/0.5.5.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/flaviocpontes/simple_json_log_formatter", "keywords": "logging json log output formatter", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "simple-json-log-formatter", "package_url": "https://pypi.org/project/simple-json-log-formatter/", "platform": "", "project_url": "https://pypi.org/project/simple-json-log-formatter/", "project_urls": { "Download": "https://github.com/flaviocpontes/simple_json_log_formatter/archive/0.5.5.tar.gz", "Homepage": "https://github.com/flaviocpontes/simple_json_log_formatter" }, "release_url": "https://pypi.org/project/simple-json-log-formatter/0.5.5/", "requires_dist": [ "six", "freezegun ; extra == 'dev'", "coverage ; extra == 'dev'", "codecov ; extra == 'dev'" ], "requires_python": ">=2.7", "summary": "Simple log formatter for Logstash-compatible JSON output", "version": "0.5.5" }, "last_serial": 4922911, "releases": { "0.4.1": [ { "comment_text": "", "digests": { "md5": "7adf6f2bb3225fd5389e1c27dc6907c3", "sha256": "062fbbf8e2e16342f9fc45800ce441b9145bdf50bf5f23f4107efa931f3369e1" }, "downloads": -1, "filename": "simple_json_log_formatter-0.4.1.tar.gz", "has_sig": false, "md5_digest": "7adf6f2bb3225fd5389e1c27dc6907c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2124, "upload_time": "2017-09-11T18:36:29", "url": "https://files.pythonhosted.org/packages/a9/56/2b9156e607aaaafcf015f93128d6b7a7a6f8bc6203b5ff89b5493d25fcd0/simple_json_log_formatter-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "749a94ef72c3f24d17c7f570bf29cd91", "sha256": "b6f9a152c7266abafdaf85ffadb9f9f7fa65e011aeeddadf7a1c0f84dfbeaee9" }, "downloads": -1, "filename": "simple_json_log_formatter-0.4.2.tar.gz", "has_sig": false, "md5_digest": "749a94ef72c3f24d17c7f570bf29cd91", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3093, "upload_time": "2017-09-11T19:32:19", "url": "https://files.pythonhosted.org/packages/f8/25/11147e1e0df3266ec379ba22f88a589e859b301492a73653209b925d8125/simple_json_log_formatter-0.4.2.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "414bb818278b67f3be5c980ed5d96bf9", "sha256": "ac146b48103673f94cfa49cf9997a4309822214b566937b9a95698254c496769" }, "downloads": -1, "filename": "simple_json_log_formatter-0.5.0.tar.gz", "has_sig": false, "md5_digest": "414bb818278b67f3be5c980ed5d96bf9", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7", "size": 3281, "upload_time": "2018-02-02T14:30:58", "url": "https://files.pythonhosted.org/packages/e6/d9/cf89d349649a4857b7e478f15a274d8202c4f3fb8cff3379662570028aee/simple_json_log_formatter-0.5.0.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "820705bf93d7f403691e3f9af6d6552f", "sha256": "4a5c53098acaca74d26bf3d9996c5cbb498e8efdf282476086a753b14129639c" }, "downloads": -1, "filename": "simple_json_log_formatter-0.5.1.tar.gz", "has_sig": false, "md5_digest": "820705bf93d7f403691e3f9af6d6552f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7", "size": 3352, "upload_time": "2018-02-06T13:28:17", "url": "https://files.pythonhosted.org/packages/4a/81/e45998878d1697ccc4ac454b601ec6e8e1c776868c260635342fc1b28636/simple_json_log_formatter-0.5.1.tar.gz" } ], "0.5.2": [ { "comment_text": "", "digests": { "md5": "20c58001821ffe89f09d3dd56fd6ad71", "sha256": "3db366705710d2f34f79acda031bbf4b0fae33898e9ab0fe2ee03afd2e344a6f" }, "downloads": -1, "filename": "simple_json_log_formatter-0.5.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "20c58001821ffe89f09d3dd56fd6ad71", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7", "size": 5690, "upload_time": "2018-02-24T12:23:27", "url": "https://files.pythonhosted.org/packages/37/c9/bbf5ecae646faf77fe887a5a04e828049fb0d24a3dcd1e432ff9ccc8ff20/simple_json_log_formatter-0.5.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c96ce4256c0cd31110f7583ef8d96d72", "sha256": "0ef88928b0240441f94a3e8079b15738ff75845dafe026012cf2a0ec889e8ca7" }, "downloads": -1, "filename": "simple_json_log_formatter-0.5.2.tar.gz", "has_sig": false, "md5_digest": "c96ce4256c0cd31110f7583ef8d96d72", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7", "size": 3394, "upload_time": "2018-02-16T20:40:46", "url": "https://files.pythonhosted.org/packages/4b/10/ac43c51d85544b1111c4620fa812a40b1fa14b52ab1e1e33d48b7a5fb4bd/simple_json_log_formatter-0.5.2.tar.gz" } ], "0.5.3": [ { "comment_text": "", "digests": { "md5": "3337a9d3d5feb9f2d1c33053e5cc918f", "sha256": "4653362e76169b6dda5849ccea4b60cebb63eb103f5fc4af2db13a4cc08c6f10" }, "downloads": -1, "filename": "simple_json_log_formatter-0.5.3.tar.gz", "has_sig": false, "md5_digest": "3337a9d3d5feb9f2d1c33053e5cc918f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7", "size": 3412, "upload_time": "2018-03-27T18:02:26", "url": "https://files.pythonhosted.org/packages/3b/c0/17f60650123cfc4d03e225b3cbe8c1ec1ecfc1fcbe2503fcf12579afe580/simple_json_log_formatter-0.5.3.tar.gz" } ], "0.5.5": [ { "comment_text": "", "digests": { "md5": "00569e13e802852e994f8987fd578d17", "sha256": "ae776eb7a7895618d8c539e975f1ad4bc283266cfa9257984336a3686d446a3b" }, "downloads": -1, "filename": "simple_json_log_formatter-0.5.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "00569e13e802852e994f8987fd578d17", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7", "size": 3849, "upload_time": "2019-03-10T22:31:03", "url": "https://files.pythonhosted.org/packages/f6/90/5926949eea96725821e5ae78308dd7063fd231376e00367a97afa695cc7f/simple_json_log_formatter-0.5.5-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "00569e13e802852e994f8987fd578d17", "sha256": "ae776eb7a7895618d8c539e975f1ad4bc283266cfa9257984336a3686d446a3b" }, "downloads": -1, "filename": "simple_json_log_formatter-0.5.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "00569e13e802852e994f8987fd578d17", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7", "size": 3849, "upload_time": "2019-03-10T22:31:03", "url": "https://files.pythonhosted.org/packages/f6/90/5926949eea96725821e5ae78308dd7063fd231376e00367a97afa695cc7f/simple_json_log_formatter-0.5.5-py2.py3-none-any.whl" } ] }