{ "info": { "author": "EclecticIQ", "author_email": "opensource@eclecticiq.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: BSD License" ], "description": "# `eiq_logging`\n\nThis package exists to make it easy to configure logging in a consistent way\nacross multiple EclecticIQ Python projects.\n\n## Installation\n\n pip install eiq-logging\n\n## Usage\n\nIn your application's entrypoint, whatever that may be:\n\n import eiq_logging\n eiq_logging.configure()\n\nThe `configure` function takes a few arguments:\n\n- `stream` determines where logs are written. Defaults to `sys.stderr`.\n- `log_format` can be either \"plain\" or \"json\". \"plain\" means plain text and is meant to be read by humans. \"json\" is newline-delimited JSON, meant for log aggregation and machine parsing.\n- `log_levels` can be either a dict of `{logger_name: log_level}` or a string which will be parsed as such. The string is comma-separated, and each item in the string should be in the format of \"logger_name:log_level\" - for example, `root:info,example:debug` will set the root logger to the level INFO, and the logger \"example\" to level DEBUG.\n\nIf you leave out the `log_format` and `log_level` arguments, you can configure these through the environment variables `EIQ_LOG_FORMAT` and `EIQ_LOG_LEVEL`.\n\nIf you're using Gunicorn, you don't need to call `configure` yourself, you can just start the process with the `--config` flag:\n\n gunicorn --config=python:eiq_logging.gunicorn myapp", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/eclecticiq/eiq-logging-python", "keywords": "", "license": "BSD-3-Clause", "maintainer": "", "maintainer_email": "", "name": "eiq-logging", "package_url": "https://pypi.org/project/eiq-logging/", "platform": "", "project_url": "https://pypi.org/project/eiq-logging/", "project_urls": { "Homepage": "https://github.com/eclecticiq/eiq-logging-python" }, "release_url": "https://pypi.org/project/eiq-logging/1.4/", "requires_dist": null, "requires_python": "", "summary": "Consistent logging for EIQ projects.", "version": "1.4" }, "last_serial": 5971109, "releases": { "1.2": [ { "comment_text": "", "digests": { "md5": "ab8020919ad47cad67e4370ab4425549", "sha256": "43e107f004b8c17755c7e65b6ac5bf21f94f1a56bc57a16eca509503d6c2621b" }, "downloads": -1, "filename": "eiq-logging-1.2.tar.gz", "has_sig": false, "md5_digest": "ab8020919ad47cad67e4370ab4425549", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4057, "upload_time": "2019-08-30T07:46:08", "url": "https://files.pythonhosted.org/packages/45/03/e94d1e206c60d563b092c19941a3ddef3b73e5260b84c4174e8dee44e0c1/eiq-logging-1.2.tar.gz" } ], "1.3": [ { "comment_text": "", "digests": { "md5": "3103b35de1a590ba7da8968e44515c52", "sha256": "79fe6fc2b53c362dcff18d446319caec912906595a572d15abcb876522af75d8" }, "downloads": -1, "filename": "eiq-logging-1.3.tar.gz", "has_sig": false, "md5_digest": "3103b35de1a590ba7da8968e44515c52", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5024, "upload_time": "2019-08-30T07:47:07", "url": "https://files.pythonhosted.org/packages/36/8a/55ad1c9cca5344fa8b506ce6b8507fdb247726a6a5a9c071381c7da30865/eiq-logging-1.3.tar.gz" } ], "1.4": [ { "comment_text": "", "digests": { "md5": "ce7b2d8635d39a6a014e8cb88c314573", "sha256": "5b83f43f137dc872fa49ce1c0ffcea9b9625bfb32cc13f3b0d162c0bd63dcc49" }, "downloads": -1, "filename": "eiq-logging-1.4.tar.gz", "has_sig": false, "md5_digest": "ce7b2d8635d39a6a014e8cb88c314573", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5477, "upload_time": "2019-10-14T11:47:11", "url": "https://files.pythonhosted.org/packages/b4/e4/a4a2d469fd864b26b53b0b90228b0c6b1079ea7aa5994fa8228b6684ac8b/eiq-logging-1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ce7b2d8635d39a6a014e8cb88c314573", "sha256": "5b83f43f137dc872fa49ce1c0ffcea9b9625bfb32cc13f3b0d162c0bd63dcc49" }, "downloads": -1, "filename": "eiq-logging-1.4.tar.gz", "has_sig": false, "md5_digest": "ce7b2d8635d39a6a014e8cb88c314573", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5477, "upload_time": "2019-10-14T11:47:11", "url": "https://files.pythonhosted.org/packages/b4/e4/a4a2d469fd864b26b53b0b90228b0c6b1079ea7aa5994fa8228b6684ac8b/eiq-logging-1.4.tar.gz" } ] }