{ "info": { "author": "Philipp Klaus", "author_email": "philipp.l.klaus@web.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Topic :: Internet :: WWW/HTTP :: Site Management", "Topic :: Internet :: WWW/HTTP :: WSGI", "Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware", "Topic :: System :: Logging", "Topic :: System :: Monitoring" ], "description": "Request Logging for WSGI Web Applications\n-----------------------------------------\n\nThis is a middleware which you can use to log requests to your WSGI\nbased site. It's even imitating Apache's combined log format to allow\nyou to use any of the many tools for Apache log file analysis.\n\nBy making use of Python's standard library logging facilities, you can\neasily set it up to log to STDOUT, time rotated log files, email,\nsyslog, etc.\n\nInstallation\n^^^^^^^^^^^^\n\nSimply install this Python module via\n\n::\n\n pip install wsgi-request-logger\n\nUsage\n^^^^^\n\nTo add this middleware to your WSGI ``application`` and log to the file\n*access.log*, do:\n\n::\n\n from requestlogger import WSGILogger, ApacheFormatter\n from logging.handlers import TimedRotatingFileHandler\n\n def application(environ, start_response):\n response_body = 'The request method was %s' % environ['REQUEST_METHOD']\n response_body = response_body.encode('utf-8')\n response_headers = [('Content-Type', 'text/plain'),\n ('Content-Length', str(len(response_body)))]\n start_response('200 OK', response_headers)\n return [response_body]\n\n handlers = [ TimedRotatingFileHandler('access.log', 'd', 7) , ]\n loggingapp = WSGILogger(application, handlers, ApacheFormatter())\n\n if __name__ == '__main__':\n from wsgiref.simple_server import make_server\n http = make_server('', 8080, loggingapp)\n http.serve_forever()\n\nThe Authors\n^^^^^^^^^^^\n\nThis WSGI middleware was originally developed under the name\n`wsgilog `__ by **L. C. Rees**.\nIt was forked by **Philipp Klaus** in 2013 to build a WSGI middleware\nfor request logging rather than exception handling and logging.\n\nLicense\n^^^^^^^\n\nThis software, *wsgi-request-logger*, is published under a *3-clause BSD\nlicense*.\n\nDevelopers' Resources\n^^^^^^^^^^^^^^^^^^^^^\n\n- To read about your options for the logging handler, you may want to\n read `Python's Logging\n Cookbook `__.\n- Documentation on Apache's log format can be found\n `here `__.\n- The\n `WSGI `__\n - Web Server Gateway Interface - is defined in `PEP\n 333 `__ with an update for\n Python 3 in `PEP 3333 `__.\n\nGeneral References\n^^^^^^^^^^^^^^^^^^\n\n- PyPI's `listing of\n wsgi-request-logger `__\n- The source code for this Python module is `hosted on\n Github `__.\n- A blog post with more background information and usage examples:\n `wsgi-request-logger \u2013 Logging HTTP Requests With Any WSGI Web\n Application like Flask, Bottle or\n Django `__", "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/pklaus/wsgi-request-logger", "keywords": "WSGI Apache-like request logging", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "wsgi-request-logger", "package_url": "https://pypi.org/project/wsgi-request-logger/", "platform": "any", "project_url": "https://pypi.org/project/wsgi-request-logger/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/pklaus/wsgi-request-logger" }, "release_url": "https://pypi.org/project/wsgi-request-logger/0.4.6/", "requires_dist": null, "requires_python": null, "summary": "Apache-like combined logging for WSGI Web Applications", "version": "0.4.6" }, "last_serial": 2387889, "releases": { "0.4": [ { "comment_text": "", "digests": { "md5": "a92e5f548cb1f8e086f9342714a262ed", "sha256": "0542ce16a2f9b67433dbc824cd93b4fc74997d871568566ecbfee2d71aaaabf0" }, "downloads": -1, "filename": "wsgi-request-logger-0.4.tar.gz", "has_sig": false, "md5_digest": "a92e5f548cb1f8e086f9342714a262ed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3865, "upload_time": "2013-06-18T00:22:55", "url": "https://files.pythonhosted.org/packages/1c/8b/e918f26df314db152163e393138e0bea4624e3ec7383f8e8d59fb3fa5d02/wsgi-request-logger-0.4.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "28ad26afea993cd27fce8962c238f996", "sha256": "e15d2452cbfb6c28aa2237a564ef359e5836d8c2148dfc0f7287f06460cc7c2d" }, "downloads": -1, "filename": "wsgi-request-logger-0.4.1.tar.gz", "has_sig": false, "md5_digest": "28ad26afea993cd27fce8962c238f996", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4114, "upload_time": "2013-10-10T21:25:44", "url": "https://files.pythonhosted.org/packages/e1/2c/e5e03a9b3067f50f71c2b0997edc55b074eab2958a0a67a98fd14f55387d/wsgi-request-logger-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "13be5553e5319d2028f6af52be133b72", "sha256": "38e50f8aed834531274887fb9973c31fc1cb3612c01f680fc826208fca9a9f2b" }, "downloads": -1, "filename": "wsgi-request-logger-0.4.2.tar.gz", "has_sig": false, "md5_digest": "13be5553e5319d2028f6af52be133b72", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4121, "upload_time": "2014-12-20T08:47:13", "url": "https://files.pythonhosted.org/packages/74/8c/f190539da6d0fe087df61c7376579fbe50c2b3f3e5e145089c16361f52eb/wsgi-request-logger-0.4.2.tar.gz" } ], "0.4.3": [ { "comment_text": "", "digests": { "md5": "749bc49653d6b3e3349cb990d3839b88", "sha256": "a8ab7e0c140977f01918b698c6c7b084f27659eb1957ed42d39bcfd8aab93e4a" }, "downloads": -1, "filename": "wsgi-request-logger-0.4.3.tar.gz", "has_sig": false, "md5_digest": "749bc49653d6b3e3349cb990d3839b88", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4149, "upload_time": "2015-02-18T10:45:27", "url": "https://files.pythonhosted.org/packages/d1/7f/d9af24144b086683663a444abfc666ea9e3f0ea04d3106ca9e08ce631201/wsgi-request-logger-0.4.3.tar.gz" } ], "0.4.4": [ { "comment_text": "", "digests": { "md5": "73c7d1eee04989f5bfdae2da892a4b8c", "sha256": "e01024aeeda83f1755928dd74d0e7a6b0b1f4d64e7fe7954c714e2812f101269" }, "downloads": -1, "filename": "wsgi-request-logger-0.4.4.tar.gz", "has_sig": false, "md5_digest": "73c7d1eee04989f5bfdae2da892a4b8c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2970, "upload_time": "2015-08-11T20:59:17", "url": "https://files.pythonhosted.org/packages/1a/9c/4e8d02ec743cfb0a2fb660f77083b771a6e8f9ddfbf27d19463a11eefa2f/wsgi-request-logger-0.4.4.tar.gz" } ], "0.4.5": [ { "comment_text": "", "digests": { "md5": "d2a85ad484d794c00cc3d1d7d2bf763f", "sha256": "fc6d036d84cd5500e81b033909fda31ce251ca073f3d8d4ab1db348a3dcf58e9" }, "downloads": -1, "filename": "wsgi-request-logger-0.4.5.tar.gz", "has_sig": false, "md5_digest": "d2a85ad484d794c00cc3d1d7d2bf763f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4193, "upload_time": "2016-03-12T11:19:11", "url": "https://files.pythonhosted.org/packages/2d/c7/36c0700b3770c52f8adee129ff68d5cbf67343fcecac04e49f47e77e140f/wsgi-request-logger-0.4.5.tar.gz" } ], "0.4.6": [ { "comment_text": "", "digests": { "md5": "0e2fd4a5b676f34238de12a621368f24", "sha256": "445d7ec52799562f812006394d0b4a7064b37084c6ea6bd74ea7a2136c97ed83" }, "downloads": -1, "filename": "wsgi-request-logger-0.4.6.tar.gz", "has_sig": false, "md5_digest": "0e2fd4a5b676f34238de12a621368f24", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4380, "upload_time": "2016-10-08T09:13:56", "url": "https://files.pythonhosted.org/packages/04/dd/5e6c52b96a841baec75e5c5647460214aa02e9c4902c7b250375352224c0/wsgi-request-logger-0.4.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0e2fd4a5b676f34238de12a621368f24", "sha256": "445d7ec52799562f812006394d0b4a7064b37084c6ea6bd74ea7a2136c97ed83" }, "downloads": -1, "filename": "wsgi-request-logger-0.4.6.tar.gz", "has_sig": false, "md5_digest": "0e2fd4a5b676f34238de12a621368f24", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4380, "upload_time": "2016-10-08T09:13:56", "url": "https://files.pythonhosted.org/packages/04/dd/5e6c52b96a841baec75e5c5647460214aa02e9c4902c7b250375352224c0/wsgi-request-logger-0.4.6.tar.gz" } ] }