{ "info": { "author": "Lars Hansson", "author_email": "romabysen@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Bottle", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Improved logging for Bottle.\n\nUse\n===\nIn order to catch exceptions from other plugins the LoggingPlugin should be\nthe first plugin you install to the application.\n\n.. code-block:: python\n\n import bottle\n from bottle_log import LoggingPlugin\n\n app = bottle.Bottle()\n app.install(LoggingPlugin(app.config))\n\n @app.get('/test')\n def test(logger):\n logger.warning('This is only a test')\n return {}\n\nConfiguration\n=============\nThe plugin uses the following configuration keys:\n\n**logging.level**\n\nThe logging level. Possible values: `debug`, `info`, `warning`, `error`, `critical`.\nDefaults to `warning`.\n\n**logging.format**\n\nThe logging format. See the python logging documentation for the format.\nDefaults to \"`[%(asctime)s] %(levelname)s: %(name)s: %(message)s`\"\n\n**logging.utc**\n\nIf `True`, the default, time stamps are in UTC.\n\nLogging\n=======\nThe standard logger, used by the `logger` keyword, prints to stderr by default.\n\nException logging\n=================\nThis plugin also provides an exception logger ('bottle.exception'). By default\nthis logger does nothing, since bottle prints all exceptions to stderr, but it can be\nuseful if you want to log exceptions to somewhere else.\nFor example, logging to Logentries:\n\n.. code-block:: python\n\n import bottle\n from logentries import LogentriesHandler\n from bottle_log import LoggingPlugin\n\n app = bottle.Bottle()\n app.install(LoggingPlugin(app.config))\n le_handler = LogentriesHandler('logentries-api-token')\n logging.getLogger('bottle.exception').addHandler(le_handler)", "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/romabysen/bottle-log", "keywords": null, "license": "New BSD", "maintainer": null, "maintainer_email": null, "name": "bottle-log", "package_url": "https://pypi.org/project/bottle-log/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/bottle-log/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/romabysen/bottle-log" }, "release_url": "https://pypi.org/project/bottle-log/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "Improved logging for Bottle.", "version": "1.0.0" }, "last_serial": 2772533, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "3279f0a7793b6d5a55d468f9aae0b043", "sha256": "c549e3d1e612b7b8e7ed0ab684676b94007e764b5789cbb2c3eda0d4ae78e2ff" }, "downloads": -1, "filename": "bottle_log-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3279f0a7793b6d5a55d468f9aae0b043", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5379, "upload_time": "2017-04-11T07:36:00", "url": "https://files.pythonhosted.org/packages/25/d8/825ccfebaf20cad9201e5961a05dcbb43834b653ae141a251cebd80b8ecf/bottle_log-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7d8cf01e55a361da464e5530b2cf7356", "sha256": "b5f03b8d64bfd577dea9b23d9cb999df078916be6951c5700644e14caa294f37" }, "downloads": -1, "filename": "bottle-log-1.0.0.tar.gz", "has_sig": false, "md5_digest": "7d8cf01e55a361da464e5530b2cf7356", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3513, "upload_time": "2017-04-11T07:36:01", "url": "https://files.pythonhosted.org/packages/1c/85/62a960db8bc6ba424b123d0993326493f17b760a5bc6d5d2f56ace128133/bottle-log-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3279f0a7793b6d5a55d468f9aae0b043", "sha256": "c549e3d1e612b7b8e7ed0ab684676b94007e764b5789cbb2c3eda0d4ae78e2ff" }, "downloads": -1, "filename": "bottle_log-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3279f0a7793b6d5a55d468f9aae0b043", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5379, "upload_time": "2017-04-11T07:36:00", "url": "https://files.pythonhosted.org/packages/25/d8/825ccfebaf20cad9201e5961a05dcbb43834b653ae141a251cebd80b8ecf/bottle_log-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7d8cf01e55a361da464e5530b2cf7356", "sha256": "b5f03b8d64bfd577dea9b23d9cb999df078916be6951c5700644e14caa294f37" }, "downloads": -1, "filename": "bottle-log-1.0.0.tar.gz", "has_sig": false, "md5_digest": "7d8cf01e55a361da464e5530b2cf7356", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3513, "upload_time": "2017-04-11T07:36:01", "url": "https://files.pythonhosted.org/packages/1c/85/62a960db8bc6ba424b123d0993326493f17b760a5bc6d5d2f56ace128133/bottle-log-1.0.0.tar.gz" } ] }