{ "info": { "author": "Orlando Diaz", "author_email": "orlandodiaz.dev@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Log3\n[![image](https://img.shields.io/pypi/v/log3.svg)](https://pypi.org/project/log3/)\n[![image](https://img.shields.io/pypi/pyversions/log3.svg)](https://pypi.org/project/log3/)\n[![codecov](https://codecov.io/gh/orlandodiaz/log3/branch/master/graph/badge.svg)](https://codecov.io/gh/orlandodiaz/log3)\n[![Build Status](https://travis-ci.com/orlandodiaz/log3.svg?branch=master)](https://travis-ci.com/orlandodiaz/log3)\n![GitHub](https://img.shields.io/github/license/mashape/apistatus.svg)\n\n\n\n`Log3` makes it easier to log messages in Python. It comes with a strong default\nlogging configuration system so you don't configure them yourself.\n\nHere are it's main highlights:\n- **Easy to use**. Just import the module and start using it. This will work for most cases. Unless your logging settings are very specialized\nyou won't have to tinker much with the configuration.\n- **Strong defaults**. The default formatter and date formatter will work for just about anyone. It includes the date, time, filename, level, and message. If you need to use a different formatter you can\nalso do so just as easily.\n- **New logging methods**. In addition to `log.info`, `log.debug`, etc `log3` also comes with `log.success` to log out successful messages\n- **Colored output for terminals**. If you're working with the terminal the messages will be colored by default without any additional configuration\n- **Easier file logging**. No need to create a file handler with new date formatting, and formatting and attach to the logger. The same configuration for `STDERR`\nalso applies to the log. Just import `log_to_file` and specify the path of the log as the argument.\n\n## Installation\n\nYou can install `Log3` using pip:\n\n pip install log3\n\n## Usage\n\nTo start logging it is as simple as importing the `log` logger object and issuing the logging\ncommands:\n\n```python\nfrom log3 import log\n\nlog.info(\"Hello world\")\nlog.success(\"This message was successful\")\nlog.debug(\"This is a debug message\")\nlog.warning(\"This is a warning\")\nlog.error(\"This is an error\")\nlog.critical(\"This is a critical error\")\n```\n\n\n#### Log to file\nThe `log_to_file` function will allow you to add a file handler to yor logging configuration.\n\nFirst import it\n\n from log3 import log_to_file\n\nNow you can do:\n\n\n log_to_file('file')\n log.info('logged to file')\n\n#### Disable logging\n\nYou can quickly disable logging rather than hardcoding it into your logging\nconfiguration file.\n\n log.disable_logging()\n\nTo enable logging again it is also that simple:\n\n log.enable_logging()\n\n## Author(s)\n- orlandodiaz\n## Copyright\nCopyright (c) 2018 Orlando Diaz\n\nFor more info see LICENSE\n\n\n", "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/orlandodiaz/log3", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "log3", "package_url": "https://pypi.org/project/log3/", "platform": "", "project_url": "https://pypi.org/project/log3/", "project_urls": { "Homepage": "https://github.com/orlandodiaz/log3" }, "release_url": "https://pypi.org/project/log3/0.1.7/", "requires_dist": [ "colorama" ], "requires_python": "", "summary": "High level logging client builtin support for colored terminal output", "version": "0.1.7" }, "last_serial": 4551603, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "f38ae9c12009bd6d08461755d8c7b0a9", "sha256": "e8a1c9424d53650707c564976dcf7e4be45c68bfcad625c0c23f3f0a915e2b89" }, "downloads": -1, "filename": "log3-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "f38ae9c12009bd6d08461755d8c7b0a9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3663, "upload_time": "2018-10-10T07:26:50", "url": "https://files.pythonhosted.org/packages/c7/ec/28bbbffb730831786a30d827989d375340640d30c48ce49905488d652396/log3-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a99487fa0b86ec769102449537c24b3b", "sha256": "e59b7d6a9f30fbc7e632a9305df4d517c30e5d6c2e35fe167dfe6aa02bf6365a" }, "downloads": -1, "filename": "log3-0.1.0.tar.gz", "has_sig": false, "md5_digest": "a99487fa0b86ec769102449537c24b3b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2586, "upload_time": "2018-10-10T07:26:51", "url": "https://files.pythonhosted.org/packages/3f/2c/b85bc413e077d39f1b2d689bfaa90f81cd5f2c967c27adac9ad5a5c1f8c2/log3-0.1.0.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "d2bdf7164ad59d2770add74803aa91a6", "sha256": "4b9d9f646d3007d2a5779f050116c713675640873a12c37834269595c7a6e40f" }, "downloads": -1, "filename": "log3-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "d2bdf7164ad59d2770add74803aa91a6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4130, "upload_time": "2018-10-13T07:36:05", "url": "https://files.pythonhosted.org/packages/a0/c6/76214eef77ba4d9f285ebc40849c30092f012cf700cb6b9eb216ff20737d/log3-0.1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e97def8c9299e8f892b724cb64761b66", "sha256": "031e71ac0eaf0dd242c0b8e83271cd2a28c16f7fbe4819062cb1a9e792fa6d30" }, "downloads": -1, "filename": "log3-0.1.3.tar.gz", "has_sig": false, "md5_digest": "e97def8c9299e8f892b724cb64761b66", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3059, "upload_time": "2018-10-13T07:36:06", "url": "https://files.pythonhosted.org/packages/e7/25/9936ebc7b434488d2ba10344def358f01731f52b582c98ea144d3ff8d211/log3-0.1.3.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "58edb1c9914fbe0f2e637d978cbdf3c4", "sha256": "2e3c32db3030d97a6b25a6e7693b0c6bd64fbd1b1049fbfd2d44823c728133e1" }, "downloads": -1, "filename": "log3-0.1.5-py3-none-any.whl", "has_sig": false, "md5_digest": "58edb1c9914fbe0f2e637d978cbdf3c4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4554, "upload_time": "2018-10-14T10:43:25", "url": "https://files.pythonhosted.org/packages/78/94/b7ecdc400aa8824e62ba81d2cdada8bdecd5e70b0200927e7fe80e57cdbf/log3-0.1.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1fa0d6b429d2e8daca11609db69ad584", "sha256": "89c9d522ee07566ca70629ea8ee177c381142e49f2856e31035346f22436180b" }, "downloads": -1, "filename": "log3-0.1.5.tar.gz", "has_sig": false, "md5_digest": "1fa0d6b429d2e8daca11609db69ad584", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3020, "upload_time": "2018-10-14T10:43:26", "url": "https://files.pythonhosted.org/packages/d8/85/0c7a9828be54ae6596446a8376b05f479f0a7544af5378699c9946f07467/log3-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "f76ef07dc9fcefa58757e38de0d1199b", "sha256": "67b21184f6b31c4e0e9b45f0fae74917b98d47981f4d019e7f9d1b18e055645d" }, "downloads": -1, "filename": "log3-0.1.6-py3-none-any.whl", "has_sig": false, "md5_digest": "f76ef07dc9fcefa58757e38de0d1199b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5033, "upload_time": "2018-10-14T11:16:02", "url": "https://files.pythonhosted.org/packages/6c/be/98ba323ac781c598fe2608f7db55db09737e70b561e0a68a3ca67fb48f4d/log3-0.1.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cc249493880a782d79f041fd901c5e86", "sha256": "a1a4fc6ab308e56e3407513a4c2189ecb735d4a5cbbfe8dbe9f177aebf0c726b" }, "downloads": -1, "filename": "log3-0.1.6.tar.gz", "has_sig": false, "md5_digest": "cc249493880a782d79f041fd901c5e86", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3577, "upload_time": "2018-10-14T11:16:03", "url": "https://files.pythonhosted.org/packages/6c/96/d9fa4a3e2a2cfe1713611b921d951b1a364951f545233cd247a0c444207e/log3-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "275c2b62cf4bde47da0a0d7a618142ec", "sha256": "178afdf58da73d71a2738500d5e05cbb6f4296201e485a22c45ab853cf180c75" }, "downloads": -1, "filename": "log3-0.1.7-py3-none-any.whl", "has_sig": false, "md5_digest": "275c2b62cf4bde47da0a0d7a618142ec", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5193, "upload_time": "2018-12-02T04:49:01", "url": "https://files.pythonhosted.org/packages/49/e6/e40cb2618c641b7f3802ca17c15fd53ed9b3a10912a7b93470786cb3f5e3/log3-0.1.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "835390d7434db5c199e50071d681a94b", "sha256": "1ce348300920cac3862c8f87ca4510493e3824e89457ff20b1646f2d2da22a1d" }, "downloads": -1, "filename": "log3-0.1.7.tar.gz", "has_sig": false, "md5_digest": "835390d7434db5c199e50071d681a94b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3758, "upload_time": "2018-12-02T04:49:03", "url": "https://files.pythonhosted.org/packages/4e/1e/5c29e2a929598f48c940101ebde70bdef0eea726594719d89939ebab7e26/log3-0.1.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "275c2b62cf4bde47da0a0d7a618142ec", "sha256": "178afdf58da73d71a2738500d5e05cbb6f4296201e485a22c45ab853cf180c75" }, "downloads": -1, "filename": "log3-0.1.7-py3-none-any.whl", "has_sig": false, "md5_digest": "275c2b62cf4bde47da0a0d7a618142ec", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5193, "upload_time": "2018-12-02T04:49:01", "url": "https://files.pythonhosted.org/packages/49/e6/e40cb2618c641b7f3802ca17c15fd53ed9b3a10912a7b93470786cb3f5e3/log3-0.1.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "835390d7434db5c199e50071d681a94b", "sha256": "1ce348300920cac3862c8f87ca4510493e3824e89457ff20b1646f2d2da22a1d" }, "downloads": -1, "filename": "log3-0.1.7.tar.gz", "has_sig": false, "md5_digest": "835390d7434db5c199e50071d681a94b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3758, "upload_time": "2018-12-02T04:49:03", "url": "https://files.pythonhosted.org/packages/4e/1e/5c29e2a929598f48c940101ebde70bdef0eea726594719d89939ebab7e26/log3-0.1.7.tar.gz" } ] }