{ "info": { "author": "jmatt", "author_email": "jmatt@jmatt.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: Information Technology", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries", "Topic :: System :: Logging" ], "description": "threepio 0.2\nMinimally improved noise for python. Pragmatic, minimal improved logging for python.\n\nTo install use pip install git+git://github.com/jmatt/threepio\n\n----\n\nthreepio\n========\n\nMinimally improved noise for python.\n\nPragmatic, minimal logging for python.\n\n# Install\n```bash\npip install -e git://github.com/jmatt/threepio#egg=threepio\n```\n\n# Use\n\nJust initialize and go.\n\n```python\nIn [1]: import logging\n\nIn [2]: import threepio\n\nIn [3]: threepio.initialize(log_filename=\"./c3po.beep.log\",\n logger_name=\"super serial project\",\n app_logging_level=logging.DEBUG,\n dep_logging_level=logging.WARN)\nOut[3]: \n\nIn [4]: from threepio import logger as c3po\n\nIn [5]: c3po.info(\"Artoo says that the chances of survival are 725 to 1.\")\n \nIn [6]: c3po.debug(\"Actually Artoo has been known to make mistakes...\")\n\nIn [7]: c3po.warn(\"from time to time... Oh dear...\")\n\n#\n# In c3po.beep.log\n# 2013-05-01 22:29:47,548 super serial project-INFO [ 1] Artoo says that the chances of survival are 725 to 1. \n# 2013-05-01 22:30:01,372 super serial project-DEBUG [ 1] Actually Artoo has been known to make mistakes...\n# 2013-05-01 22:30:11,602 super serial project-WARN [ 1] From time to time... Oh dear... \n```\n\nOr create a custom logger and leave the global logger alone.\n\n```python\nIn [1]: import logging\nIn [2]: import threepio\nIn [3]: woot_logger = threepio.initialize(logger_name=\"woot\",\n app_logging_level=logging.DEBUG,\n dep_logging_level=logging.DEBUG,\n global_logger=False)\nIn [4]: woot_logger.debug(\"RWRAharhrhr!\")\n#\n# In the default logging file (threepio.log)\n# 2013-05-01 22:14:06,215 woot-DEBUG [ 1] RWRAharhrhr!\n```\n\n***[Luke, Leia and Han start laughing hysterically; it sounds like screaming]***\n\n**C-3PO**: Listen to them, they're dying R2! Curse my metal body, I wasn't fast enough, it's all my fault! My poor Master.\n\n**Luke**: 3PO, we're all right! We're all right! Ha ha! Hey, open the pressure maintenance hatch on unit number... where are we? 3263827!\n\n\n----\n\nFor more information, please see: https://github.com/jmatt/threepio", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jmatt/threepio", "keywords": null, "license": "Apache License, Version 2.0", "maintainer": null, "maintainer_email": null, "name": "threepio", "package_url": "https://pypi.org/project/threepio/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/threepio/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/jmatt/threepio" }, "release_url": "https://pypi.org/project/threepio/0.2/", "requires_dist": null, "requires_python": null, "summary": "Minimally improved noise for python. Pragmatic, minimal improved logging.", "version": "0.2" }, "last_serial": 1210905, "releases": { "0.1.4": [ { "comment_text": "", "digests": { "md5": "edf100c0fcd2b2314b074a7795e3b25d", "sha256": "b8c0384badc27245de7ab77901938c309b0ee41bc0a395607f2abba1e6dce610" }, "downloads": -1, "filename": "threepio-0.1.4.tar.gz", "has_sig": true, "md5_digest": "edf100c0fcd2b2314b074a7795e3b25d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7869, "upload_time": "2014-09-02T21:53:16", "url": "https://files.pythonhosted.org/packages/ac/53/0d72ecef05900d4feba1f6b25341d093b8253455d6a8c8d6bc09badda265/threepio-0.1.4.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "81bd0c3065a3a7738173c3f719602eb8", "sha256": "3b2558fa11893535e8d1c515e385788366e44cb27350f9a3208d11333d0999a3" }, "downloads": -1, "filename": "threepio-0.2-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "81bd0c3065a3a7738173c3f719602eb8", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5954, "upload_time": "2014-09-02T22:25:57", "url": "https://files.pythonhosted.org/packages/c7/20/10599d420d48b1b7aac91b11a2c0efe4593d1d568599c9653a72f42e6b89/threepio-0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1af9da3ccda1485f14437279338bf319", "sha256": "bbff6573b765c791bc8df8649824ad4248e365eb7f54094cd8ae77f47479dd4d" }, "downloads": -1, "filename": "threepio-0.2.tar.gz", "has_sig": true, "md5_digest": "1af9da3ccda1485f14437279338bf319", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7863, "upload_time": "2014-09-02T22:25:48", "url": "https://files.pythonhosted.org/packages/96/59/660b249c725acb894779b85dde1ac881897e11dbfddc8718f3ff185ca113/threepio-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "81bd0c3065a3a7738173c3f719602eb8", "sha256": "3b2558fa11893535e8d1c515e385788366e44cb27350f9a3208d11333d0999a3" }, "downloads": -1, "filename": "threepio-0.2-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "81bd0c3065a3a7738173c3f719602eb8", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5954, "upload_time": "2014-09-02T22:25:57", "url": "https://files.pythonhosted.org/packages/c7/20/10599d420d48b1b7aac91b11a2c0efe4593d1d568599c9653a72f42e6b89/threepio-0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1af9da3ccda1485f14437279338bf319", "sha256": "bbff6573b765c791bc8df8649824ad4248e365eb7f54094cd8ae77f47479dd4d" }, "downloads": -1, "filename": "threepio-0.2.tar.gz", "has_sig": true, "md5_digest": "1af9da3ccda1485f14437279338bf319", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7863, "upload_time": "2014-09-02T22:25:48", "url": "https://files.pythonhosted.org/packages/96/59/660b249c725acb894779b85dde1ac881897e11dbfddc8718f3ff185ca113/threepio-0.2.tar.gz" } ] }