{ "info": { "author": "ALI B OTHMAN", "author_email": "alosh.othman55@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# easylogging\n###### Simple and Easy Logger lib for python\n\n[![easylogging](https://img.shields.io/badge/build-passing-brightgreen.svg)]()\n[![version](https://img.shields.io/badge/version-1.2.0-green.svg)]()\n[![status](https://img.shields.io/badge/status-stable-brightgreen.svg)]()\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/677f082650b54782b947b429dd1c35ce)](https://www.codacy.com/project/alosh.othman55/Pylog/dashboard?utm_source=github.com&utm_medium=referral&utm_content=AI35/Pylog&utm_campaign=Badge_Grade_Dashboard)\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/easylogging/blob/master/LICENSE)\n\n## REQUIREMENTS\n- Python-3 --> http://www.python.org/download/\n\n## Notes\n- Now This lib is **Stable**.\n- I am created this lib because i want use easy logging lib.\n- ~~**Important(To Work --logfile)** : You need to put easylogging.py in same folder with your main file.~~\n- ~~**Known Bug** : You need to place easylogging.py next to the file that uses this lib.~~\n\n## Installation\n\n- Clone this repo:\n\t\n\t```\n\t$ git clone https://github.com/AI35/easylogging\n\t```\n- Using pip:\n\t\n\t```\n\t$ pip install easylogging\n\t```\n\n## Usage\n- First you need import lib for your file and Set name :\n ```\n import easylogging\n \n easylogging.logname(__file__)\n ```\n- Use the functions you need:\n - easylogging.critical(msg)\n - easylogging.error(msg, exc_info) **default: exc_info=False**\n - easylogging.warning(msg) **or** easylogging.warn(msg)\n - easylogging.info(msg)\n - easylogging.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 - **in Version 1.1.0** : Now you can 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 - **in Version 1.1.2** : Fix DeprecationWarning:\n \t###### - Fix warn function\n\t\n - **in Version 1.1.3** : Fix input msg:\n \t###### - You can know input (int or any value) , example:\n\t```\n\t easylogging.error(msg) ; msg = 10\n\t```\n - **in Version 1.2.0** : Important Fixes:\n \t###### - You **don't** need to place easylog.py next to the file that uses this lib.\n\t###### - File level in logging.conf work on --logfile **without use --logging** (if use --logging file write all level)\n\t###### - V 1.2.0 is stable version and ready to use.\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 2018 LinePY - ALI B OTHMAN(AI35), Inc.\n\neasylogging\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/easylog/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/easylogging", "keywords": "logging logger log", "license": "LICENSE.txt", "maintainer": "", "maintainer_email": "", "name": "easylogging", "package_url": "https://pypi.org/project/easylogging/", "platform": "", "project_url": "https://pypi.org/project/easylogging/", "project_urls": { "Bug Reports": "https://github.com/AI35/easylogging/issues", "Homepage": "https://github.com/AI35/easylogging", "Source": "https://github.com/AI35/easylogging" }, "release_url": "https://pypi.org/project/easylogging/1.2.0/", "requires_dist": null, "requires_python": ">=3", "summary": "Simple Python logging lib", "version": "1.2.0" }, "last_serial": 5523381, "releases": { "1.2.0": [ { "comment_text": "", "digests": { "md5": "1cefcad2aef3d6a289282f344cc33b9a", "sha256": "5e0d6e291d1f397ab457d7c1a551bf8710f584d34d1daa3eaf05a0861f8826bc" }, "downloads": -1, "filename": "easylogging-1.2.0.zip", "has_sig": false, "md5_digest": "1cefcad2aef3d6a289282f344cc33b9a", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 9484, "upload_time": "2018-08-19T14:56:41", "url": "https://files.pythonhosted.org/packages/29/05/97c1466210ea4216d316d5a4c0679270f7a82a415aa8e35917c7683aca2d/easylogging-1.2.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1cefcad2aef3d6a289282f344cc33b9a", "sha256": "5e0d6e291d1f397ab457d7c1a551bf8710f584d34d1daa3eaf05a0861f8826bc" }, "downloads": -1, "filename": "easylogging-1.2.0.zip", "has_sig": false, "md5_digest": "1cefcad2aef3d6a289282f344cc33b9a", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 9484, "upload_time": "2018-08-19T14:56:41", "url": "https://files.pythonhosted.org/packages/29/05/97c1466210ea4216d316d5a4c0679270f7a82a415aa8e35917c7683aca2d/easylogging-1.2.0.zip" } ] }