{ "info": { "author": "Tayler Mulligan", "author_email": "mulligantayler@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Programming Language :: Python", "Programming Language :: Python :: 3" ], "description": "=============\nSimpleLogger\n=============\n\nSimpleLogger is a simple logging utility for Python. I find the default Python logging module powerful, but extremely clunky and difficult to setup quickly. SimpleLogger supports basics such as output redirection, custom logging format, and logging levels.\n\nUsage:\n======\nLog Levels and Threshold:\n--------------------------\nThe current threshold that determines what level of log entries can be seen is set through ``Logger.set_threshold``, passing a constant as the argument. Level constants include DEBUG, INFO, WARNING, ERROR, and CRITICAL. Changing the threshold only affects future entries.\n\nLogging Formats:\n----------------\nLogging formats are set through ``Logger.set_format``, passing a string of valid characters and substitution directives as arguments.\n\nValid subsitution directives include:\n\n+------------+-----------------------------+\n| Directive | Substitution |\n+============+=============================+\n| {time} | The current time |\n+------------+-----------------------------+\n| {datetime} | The current date and time |\n+------------+-----------------------------+\n| {date} | The current date |\n+------------+-----------------------------+\n| {level} | The level of the entry |\n+------------+-----------------------------+\n| {text} | The text to be logged |\n+------------+-----------------------------+\n\nInstallation:\n=============\n**Recommended:** ::\n\n pip install simplelogger\n\n**The Hard Way:** ::\n\n python setup.py install\n\n\nExamples:\n=========\n**Basic usage:**::\n\n import simplelogger\n\n # make a new logger that outputs to output_file.log, has a threshold of DEBUG, and the entry format is just the text to be logged\n logger = simplelogger.Logger(stream=output_file.log, threshold=simplelogger.DEBUG, format=\"{text}\")\n\n logger.info(\"Log at the info level\")\n logger.warning(\"Log at the warning level\")\n\n if (foo > bar):\n # change the logging threshold to INFO\n logger.set_threshold(simplelogger.INFO)\n else:\n # change the format to output the logged text, the date and time, and the time separated by characters\n logger.set_format(\"{text}: {datetime} - {time}\")\n\nLicense\n-------\nCopyright (C) 2013 Tayler Mulligan\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program. If not, see .", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/tamul/simplelogger", "keywords": null, "license": "GNU GPL v3", "maintainer": null, "maintainer_email": null, "name": "SimpleLogger", "package_url": "https://pypi.org/project/SimpleLogger/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/SimpleLogger/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/tamul/simplelogger" }, "release_url": "https://pypi.org/project/SimpleLogger/1.4.9/", "requires_dist": null, "requires_python": null, "summary": "Simple Logging Utility", "version": "1.4.9" }, "last_serial": 904759, "releases": { "1.4.4": [ { "comment_text": "", "digests": { "md5": "5f8faa3c57110b3c5a5e3376d6c9ffa5", "sha256": "437ce082c05febdbbcb590a7af5439235650cb68b7d91f3dbfa409001fc58f2e" }, "downloads": -1, "filename": "SimpleLogger-1.4.4.tar.gz", "has_sig": true, "md5_digest": "5f8faa3c57110b3c5a5e3376d6c9ffa5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2569, "upload_time": "2013-10-23T06:22:26", "url": "https://files.pythonhosted.org/packages/bb/5a/75f01379fd9e6728d33ade8e4f0edf3aeaa0ef334b32f66ef7da93d2168f/SimpleLogger-1.4.4.tar.gz" } ], "1.4.5": [ { "comment_text": "", "digests": { "md5": "88147a13ba839419e720003aae99dfb3", "sha256": "48b19e78e2d995a131664dddab7119b51c46e1bfd78208aa5b8f5365a173f944" }, "downloads": -1, "filename": "SimpleLogger-1.4.5.tar.gz", "has_sig": true, "md5_digest": "88147a13ba839419e720003aae99dfb3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3346, "upload_time": "2013-10-23T09:05:38", "url": "https://files.pythonhosted.org/packages/5e/58/82a2b54c0d3c344a786531a3fa1b3e559ca629c6891145e2e075e6759d05/SimpleLogger-1.4.5.tar.gz" } ], "1.4.6": [ { "comment_text": "", "digests": { "md5": "1d2c35e14738c83098afce51bd63a854", "sha256": "9417a4ab42bc37e41241baf84efc4fbdde8da5a4de7c546a20e6b251971c9082" }, "downloads": -1, "filename": "SimpleLogger-1.4.6.tar.gz", "has_sig": true, "md5_digest": "1d2c35e14738c83098afce51bd63a854", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2724, "upload_time": "2013-10-24T04:15:37", "url": "https://files.pythonhosted.org/packages/2d/5b/4f638ae6a5a1e3b36de107fcef9d28f638168372596184a5360a22560de9/SimpleLogger-1.4.6.tar.gz" } ], "1.4.7": [ { "comment_text": "", "digests": { "md5": "872b2e7ad8eb49a2b9b49df9d68a4364", "sha256": "4a05eebfe4862c7179e781ffc8b54e433e6254cea9970ede04f36ab406bcaacf" }, "downloads": -1, "filename": "SimpleLogger-1.4.7.tar.gz", "has_sig": true, "md5_digest": "872b2e7ad8eb49a2b9b49df9d68a4364", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3492, "upload_time": "2013-10-27T07:02:44", "url": "https://files.pythonhosted.org/packages/8b/11/399fb2b811014007d1cef127a2f9fe41dd005947ce98a7f6af5ff3c86b0b/SimpleLogger-1.4.7.tar.gz" } ], "1.4.8": [ { "comment_text": "", "digests": { "md5": "8b0ac4ccd6e8bca0541a21f7155196ff", "sha256": "adba696bdc186e752e2d9d5d6ebb9e113d8ecaf2b60c2384008841d56d592aac" }, "downloads": -1, "filename": "SimpleLogger-1.4.8.tar.gz", "has_sig": true, "md5_digest": "8b0ac4ccd6e8bca0541a21f7155196ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3557, "upload_time": "2013-10-27T23:35:47", "url": "https://files.pythonhosted.org/packages/81/12/f88b51d77e6f299575d2aa0976bfb3b23ed1afed5bc69a9ed7d148f34b51/SimpleLogger-1.4.8.tar.gz" } ], "1.4.9": [ { "comment_text": "", "digests": { "md5": "b9c17687df60b654f5c107fab4152fd3", "sha256": "8005df6d6e8da7434b7f4aa3bb0314f5505af7e980dc35bf4e454dc96030c827" }, "downloads": -1, "filename": "SimpleLogger-1.4.9.tar.gz", "has_sig": true, "md5_digest": "b9c17687df60b654f5c107fab4152fd3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15641, "upload_time": "2013-10-28T00:48:35", "url": "https://files.pythonhosted.org/packages/01/32/ba368951cbc521237f446da9d43b5a1d90f4c79f978535341c5affdb5429/SimpleLogger-1.4.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b9c17687df60b654f5c107fab4152fd3", "sha256": "8005df6d6e8da7434b7f4aa3bb0314f5505af7e980dc35bf4e454dc96030c827" }, "downloads": -1, "filename": "SimpleLogger-1.4.9.tar.gz", "has_sig": true, "md5_digest": "b9c17687df60b654f5c107fab4152fd3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15641, "upload_time": "2013-10-28T00:48:35", "url": "https://files.pythonhosted.org/packages/01/32/ba368951cbc521237f446da9d43b5a1d90f4c79f978535341c5affdb5429/SimpleLogger-1.4.9.tar.gz" } ] }