{ "info": { "author": "sebisebi", "author_email": "gpirtoaca@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Logging" ], "description": "# FriendlyLog: Python logging made simple\n\n![FriendlyLog logo](https://github.com/SebiSebi/friendlylog/blob/master/icons/facebook_cover_photo_2.png)\n\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/SebiSebi/friendlylog/blob/master/LICENSE)\n[![Build Status](https://travis-ci.com/SebiSebi/friendlylog.svg?branch=master)](https://travis-ci.com/SebiSebi/friendlylog)\n[![codecov](https://codecov.io/gh/SebiSebi/friendlylog/branch/master/graph/badge.svg)](https://codecov.io/gh/SebiSebi/friendlylog)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/803817c9fe964b8b8b591112ab41e913)](https://www.codacy.com/manual/SebiSebi/friendlylog?utm_source=github.com&utm_medium=referral&utm_content=SebiSebi/friendlylog&utm_campaign=Badge_Grade)\n\n[![Python Versions](https://img.shields.io/badge/python-2.7%20%7C%203.4%20%7C%203.5%20%7C%203.6%20%7C%203.7-blue)](https://pypi.org/project/friendlylog/)\n[![Downloads](https://pepy.tech/badge/friendlylog/month)](https://pypistats.org/packages/friendlylog)\n\nFriendlyLog is a simple, colorful, user-friendly, thread-safe logger for `Python` (`2` and `3`).\n\n\n\nInstall\n-------\n\n```bash\npip install friendlylog\n```\n\n\nUsage\n-----\n\n1. Simple Logger\n\n```python\nimport logging\n\nfrom friendlylog import simple_logger as log\n\n# Anything above or including DEBUG will be logged.\nlog.setLevel(logging.DEBUG) \n\nlog.debug(\"debug message\")\nlog.info(\"info message\")\nlog.warning(\"warning message\")\nlog.error(\"error message\")\nlog.critical(\"critical message\")\n```\n\nWill result in the following logs (`test.py` is the name of the file):\n```\n[07-Oct-19 11:06:06.107 in test.py - : 3] DEBUG: debug message\n[07-Oct-19 11:06:06.107 in test.py - : 4] INFO: info message\n[07-Oct-19 11:06:06.107 in test.py - : 5] WARNING: warning message\n[07-Oct-19 11:06:06.107 in test.py - : 6] ERROR: error message\n[07-Oct-19 11:06:06.107 in test.py - : 7] CRITICAL: critical message\n```\n\n2. Colored Logger\n\n```python\nimport logging\n\nfrom friendlylog import colored_logger as log\n\n# Anything above or including DEBUG will be logged.\nlog.setLevel(logging.DEBUG) \n\nlog.debug(\"debug message\")\nlog.info(\"info message\")\nlog.warning(\"warning message\")\nlog.error(\"error message\")\nlog.critical(\"critical message\")\n```\n\nWill result in the following logs (`test.py` is the name of the file):\n\n\n\n\nContributing\n------------\n\n1. Write the code for a new logger under `friendlylog`. It should export the following methods:\n \t* `setLevel(level)`\n\t* `debug(msg: string)`\n \t* `info(msg: string)`\n \t* `warning(msg: string)`\n \t* `error(msg: string)`\n \t* `critical(msg: string)`\n2. Write unit tests with `>92%` coverage under `tests`. You can run the tests locally\nusing this command: `bash run_tests.sh`. Make sure the new logger is thread-safe. Also,\nadd a unit test that checks thread-safety;\n3. Submit a pull-request with your changes.\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/SebiSebi/friendlylog", "keywords": "", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "friendlylog", "package_url": "https://pypi.org/project/friendlylog/", "platform": "", "project_url": "https://pypi.org/project/friendlylog/", "project_urls": { "Homepage": "https://github.com/SebiSebi/friendlylog" }, "release_url": "https://pypi.org/project/friendlylog/1.0.2/", "requires_dist": [ "colored (>=1.4.0)", "six (>=1.12.0)" ], "requires_python": "", "summary": "Python logging for humans: colorful, clean interface, straightforward usage, simply friendly log.", "version": "1.0.2", "yanked": false, "yanked_reason": null }, "last_serial": 6041354, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "db52eb582f53ae1934c0f67889e59de0", "sha256": "ac2c8e4deb6c4bc4dfdb5f355df098e2410d45d60fc799fa807670d879b35870" }, "downloads": -1, "filename": "friendlylog-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "db52eb582f53ae1934c0f67889e59de0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8791, "upload_time": "2019-10-14T18:31:52", "upload_time_iso_8601": "2019-10-14T18:31:52.742814Z", "url": "https://files.pythonhosted.org/packages/8d/51/83ca8eafc4f371baa0fcce58e734bac38c618cecc591ee9af5ce1f4e344d/friendlylog-1.0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "58d624779df306e0e630a566e1d61a85", "sha256": "5d56cbab32d763435c8f02b078f4a5e6d630fd53a2e146d0235c9a318cecf718" }, "downloads": -1, "filename": "friendlylog-1.0.tar.gz", "has_sig": false, "md5_digest": "58d624779df306e0e630a566e1d61a85", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3612, "upload_time": "2019-10-14T18:31:55", "upload_time_iso_8601": "2019-10-14T18:31:55.554784Z", "url": "https://files.pythonhosted.org/packages/63/4a/43e90379037aa2b90d35fff13a814fe612f35a220911ce3393388dad908b/friendlylog-1.0.tar.gz", "yanked": false, "yanked_reason": null } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "f95e0cd9f0f70894b3250d5ef145356e", "sha256": "8782a6c767d9573a59b2fc3afd364c34d67a2595cadac0e72628c37ee9c7141b" }, "downloads": -1, "filename": "friendlylog-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "f95e0cd9f0f70894b3250d5ef145356e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8778, "upload_time": "2019-10-14T18:39:40", "upload_time_iso_8601": "2019-10-14T18:39:40.808290Z", "url": "https://files.pythonhosted.org/packages/4e/72/77317ebfa7f9dcb4183a4745afec6f46454057bbaa81f3e2883cdcf6b01e/friendlylog-1.0.1-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "6121d385306e8dae6e677c5142f00b02", "sha256": "cbcfe6d519e41c91e03c3c15390d04aa05ef30849341e63877556faa9bfa8d0a" }, "downloads": -1, "filename": "friendlylog-1.0.1.tar.gz", "has_sig": false, "md5_digest": "6121d385306e8dae6e677c5142f00b02", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3561, "upload_time": "2019-10-14T18:39:43", "upload_time_iso_8601": "2019-10-14T18:39:43.698188Z", "url": "https://files.pythonhosted.org/packages/77/81/c8cec2396ed743c486644a6fa3228670d0a2b4ada6346e08999ce5ee6f7e/friendlylog-1.0.1.tar.gz", "yanked": false, "yanked_reason": null } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "e68368a7ba0965f126dff50b182a1fde", "sha256": "ef013660d1b0f021681d9745c2e4223ae8956794ed92ef643727405bd4e11ba8" }, "downloads": -1, "filename": "friendlylog-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "e68368a7ba0965f126dff50b182a1fde", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9417, "upload_time": "2019-10-28T13:09:05", "upload_time_iso_8601": "2019-10-28T13:09:05.170129Z", "url": "https://files.pythonhosted.org/packages/ce/c4/672baae9d30bd8330448ed823ce747ab739dcbf7844ecccb3ca05fb0f1be/friendlylog-1.0.2-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "154aba48ac1db67a0e7db0d40c534171", "sha256": "0dac3b29eb8c239c3023ceaf40656d20189d656149956e4b03630203a7b691a0" }, "downloads": -1, "filename": "friendlylog-1.0.2.tar.gz", "has_sig": false, "md5_digest": "154aba48ac1db67a0e7db0d40c534171", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3886, "upload_time": "2019-10-28T13:09:07", "upload_time_iso_8601": "2019-10-28T13:09:07.057995Z", "url": "https://files.pythonhosted.org/packages/7d/9c/2bb26e81d26da5226a40a7993af30e1ce0fe3ca432c3fa24e352ef3bb4ed/friendlylog-1.0.2.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e68368a7ba0965f126dff50b182a1fde", "sha256": "ef013660d1b0f021681d9745c2e4223ae8956794ed92ef643727405bd4e11ba8" }, "downloads": -1, "filename": "friendlylog-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "e68368a7ba0965f126dff50b182a1fde", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9417, "upload_time": "2019-10-28T13:09:05", "upload_time_iso_8601": "2019-10-28T13:09:05.170129Z", "url": "https://files.pythonhosted.org/packages/ce/c4/672baae9d30bd8330448ed823ce747ab739dcbf7844ecccb3ca05fb0f1be/friendlylog-1.0.2-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "154aba48ac1db67a0e7db0d40c534171", "sha256": "0dac3b29eb8c239c3023ceaf40656d20189d656149956e4b03630203a7b691a0" }, "downloads": -1, "filename": "friendlylog-1.0.2.tar.gz", "has_sig": false, "md5_digest": "154aba48ac1db67a0e7db0d40c534171", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3886, "upload_time": "2019-10-28T13:09:07", "upload_time_iso_8601": "2019-10-28T13:09:07.057995Z", "url": "https://files.pythonhosted.org/packages/7d/9c/2bb26e81d26da5226a40a7993af30e1ce0fe3ca432c3fa24e352ef3bb4ed/friendlylog-1.0.2.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }