{ "info": { "author": "Chris O'Brien", "author_email": "christopher.obrien@remindermedia.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 2" ], "description": "\r\n\r\n# Generic Logger\r\n[![built with Python2](https://img.shields.io/badge/Built%20with-Python2-blue.svg)](https://www.python.org/)\r\n\r\n### A generic logging class for Python\r\n\r\nBasic setup and usage are simple. Just import the class and create a Logger instance with a location to save the log file, it will handle everything else! \r\nThe log files will even be capped at a configurable limit and rotated after they have reached the limit.\r\n\r\nTo install:\r\nDownload the source files as an archive and extract them on your computer.\r\n\r\nNext run the install command:\r\n```bash\r\npython setup.py install\r\n```\r\n\r\nUsage:\r\n```python\r\nfrom logger import Logger\r\n\r\ndef main():\r\n log = Logger(\"./logs/test.log\")\r\n\r\n log.info(\"This is a test...\")\r\n log.warning(\"I know what you did last summer...\")\r\n\r\nif __name__ == \"__main__\":\r\n main()\r\n```\r\n\r\n### Attributes\r\n* Log File Location\r\n* Logger Name (Default: Calling script)\r\n* Max Log File Size {in Megabytes} (Default: 1 MB)\r\n* Log File Backup Count (Default: 3)\r\n* Logging Level (Default: INFO)\r\n* Log Format (Default: %(levelname)s: [%(name)s]: %(asctime)s - %(message)s)\r\n* Date Format (Default: %m/%d/%Y %H:%M:%S)\r\n\r\nAll attributes are configurable, and all except log file location have default values.\r\n\r\n### Logging Levels\r\n* DEBUG\r\n* INFO\r\n* WARNING\r\n* ERROR\r\n* CRITICAL\r\n\r\n### Log File Output Example\r\n\r\n\r\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "rm-logger", "package_url": "https://pypi.org/project/rm-logger/", "platform": "", "project_url": "https://pypi.org/project/rm-logger/", "project_urls": null, "release_url": "https://pypi.org/project/rm-logger/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "A generic logging class", "version": "0.0.1" }, "last_serial": 4565339, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "838731cc83636efb2140d2f713519fd8", "sha256": "fef345a4ac8f280ea33e08e7a9f8bbd9cb6c535901aa2abaa4cbb38bfb9d17c7" }, "downloads": -1, "filename": "rm_logger-0.0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "838731cc83636efb2140d2f713519fd8", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4500, "upload_time": "2018-12-05T20:37:19", "url": "https://files.pythonhosted.org/packages/45/35/76eadcade28f4952fd5182130ae36b95e0adb4f82d6f49a5f29474521a7a/rm_logger-0.0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "486dd3d973f5defc18114d532c21b0f6", "sha256": "a6f25e6a386e0c272931f18ca45dbe5ed1834ba0489fb3b77d4ab505d8a1bce8" }, "downloads": -1, "filename": "rm_logger-0.0.1.tar.gz", "has_sig": false, "md5_digest": "486dd3d973f5defc18114d532c21b0f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2851, "upload_time": "2018-12-05T20:37:21", "url": "https://files.pythonhosted.org/packages/2f/45/c63690003602fa7552225a9c7cfa0f6249a2538ea97e905bfa0455437997/rm_logger-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "838731cc83636efb2140d2f713519fd8", "sha256": "fef345a4ac8f280ea33e08e7a9f8bbd9cb6c535901aa2abaa4cbb38bfb9d17c7" }, "downloads": -1, "filename": "rm_logger-0.0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "838731cc83636efb2140d2f713519fd8", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4500, "upload_time": "2018-12-05T20:37:19", "url": "https://files.pythonhosted.org/packages/45/35/76eadcade28f4952fd5182130ae36b95e0adb4f82d6f49a5f29474521a7a/rm_logger-0.0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "486dd3d973f5defc18114d532c21b0f6", "sha256": "a6f25e6a386e0c272931f18ca45dbe5ed1834ba0489fb3b77d4ab505d8a1bce8" }, "downloads": -1, "filename": "rm_logger-0.0.1.tar.gz", "has_sig": false, "md5_digest": "486dd3d973f5defc18114d532c21b0f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2851, "upload_time": "2018-12-05T20:37:21", "url": "https://files.pythonhosted.org/packages/2f/45/c63690003602fa7552225a9c7cfa0f6249a2538ea97e905bfa0455437997/rm_logger-0.0.1.tar.gz" } ] }