{ "info": { "author": "ALI B OTHMAN", "author_email": "alosh.othman55@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# easylogging2\n###### Simple and Easy Logging lib for python V2\n\n[![easylogging2](https://img.shields.io/badge/build-passing-brightgreen.svg)]()\n[![version](https://img.shields.io/badge/version-2.0.1-green.svg)]()\n[![status](https://img.shields.io/badge/status-stable-brightgreen.svg)]()\n[![python](https://img.shields.io/badge/python-3-blue.svg)](http://www.python.org/download/)\n[![windows](https://img.shields.io/badge/windows-tested-brightgreen.svg)]()\n[![linux](https://img.shields.io/badge/linux-tested-brightgreen.svg)]()\n[![license](https://img.shields.io/badge/license-GNU-blue.svg)](https://github.com/AI35/easylogging2/blob/master/LICENSE)\n\n## REQUIREMENTS\n- Python-3 --> http://www.python.org/download/\n\n## Notes\n- After 9 months this library has returned better and more useful.\n- This library is very simple so it is not better than a logging library and it is derived from it.\n- This library is created because I wanted a simple and easy logging library.\n\n## Installation\n\n- Clone this repo:\n\t\n\t```\n\t$ git clone https://github.com/AI35/easylogging2\n\t```\n- Using pip:\n\t\n\t```\n\t$ pip install easylogging2\n\t```\n\n## Usage\n- First you need import lib and Set name :\n ```\n import easylogging2\n \n log = easylogging2.logname(__file__)\n ```\n- Use the functions you need:\n - log.critical(msg)\n - log.error(msg, exc_info) **default: exc_info=False**\n - log.warning(msg)\n - log.info(msg)\n - log.debug(msg)\n- You can start logging from Cmd or PowerShell :\n ```\n $ Python yourfile.py --logging --logfile\n \n usage: youefile.py [--logging] [--logfile]\n \n optional arguments:\n --logging Display log in Console\n --logfile Create log file\n ```\n- After first run you will see new file **logging.conf** :\n - Change **level** number to display log in console **without** --logging (0 display all level).\n \t```\n \t level=50\n \t```\n - Change **file_level** number to set level in log file **with** --logfile (50 hide all level).\n \t###### - This option work on --logfile without use --logging (if use --logging file write all level)\n \t```\n \t file_level=0\n \t```\n - Show and hide error info from **logging.conf** :\n \t###### - Show Error info (easylogging.error(msg, exc_info))\n\t###### - True or False or None\n\t###### - * (None) means that exc_info takes the value entered from the user, example: easylogging.error(msg, exc_info=True)\n \t```\n \t exc_info=None\n \t```\n - **formatter** :\n ###### - You can use all defaults logging formats.\n \t```\n\t formatter = %(asctime)s - %(name)s - %(levelname)s - %(message)s\n\t```\n## Changlog\n### V 2.0.1 Bug fix:\n###### - Increase performance\n\n\n## - Level table :\n\n | Level | Numeric value |\n | ------------- | ------------- |\n | CRITICAL | < 50 |\n | ERROR | < 40 |\n | WARNING | < 30 |\n | INFO | < 20 |\n | DEBUG | < 10 |\n | NOTSET | 0 |\n \n- You can see test file **test.py** to know how this lib is work.\n\n\n \n## LICENSE\n```\nCopyright 2019 LinePY - ALI B OTHMAN(AI35), Inc.\n\neasylogging2\n\n Licensed under the GNU License , you may not use this\n file except in compliance with the License.\n You may obtain a copy of the License at :\n\n https://github.com/AI35/easylogging2/blob/master/LICENSE\n```\n###### ALI .B .OTH - ORG : LinePY", "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/AI35/easylogging2", "keywords": "logging logger log python", "license": "GNU v3.0", "maintainer": "", "maintainer_email": "", "name": "easylogging2", "package_url": "https://pypi.org/project/easylogging2/", "platform": "", "project_url": "https://pypi.org/project/easylogging2/", "project_urls": { "Bug Reports": "https://github.com/AI35/easylogging2/issues", "Homepage": "https://github.com/AI35/easylogging2", "Source": "https://github.com/AI35/easylogging2" }, "release_url": "https://pypi.org/project/easylogging2/2.0.1/", "requires_dist": null, "requires_python": ">=3", "summary": "Simple Python logging lib", "version": "2.0.1" }, "last_serial": 5547601, "releases": { "2.0.1": [ { "comment_text": "", "digests": { "md5": "201331512130137e51ac3f69af4ed335", "sha256": "423866f118673c6c9a73afc296f3c4044dfb7e53c56bc5084352cf4aae78a014" }, "downloads": -1, "filename": "easylogging2-2.0.1.tar.gz", "has_sig": false, "md5_digest": "201331512130137e51ac3f69af4ed335", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 3927, "upload_time": "2019-07-14T14:22:22", "url": "https://files.pythonhosted.org/packages/e4/27/37a19937e6de269b608a7e5d20071f4ba8581c9e95fc16d54e66e44ec8f4/easylogging2-2.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "201331512130137e51ac3f69af4ed335", "sha256": "423866f118673c6c9a73afc296f3c4044dfb7e53c56bc5084352cf4aae78a014" }, "downloads": -1, "filename": "easylogging2-2.0.1.tar.gz", "has_sig": false, "md5_digest": "201331512130137e51ac3f69af4ed335", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 3927, "upload_time": "2019-07-14T14:22:22", "url": "https://files.pythonhosted.org/packages/e4/27/37a19937e6de269b608a7e5d20071f4ba8581c9e95fc16d54e66e44ec8f4/easylogging2-2.0.1.tar.gz" } ] }