wsgilog


Namewsgilog JSON
Version 0.3.1 PyPI version JSON
download
home_pageUNKNOWN
SummaryWSGI logging and event reporting middleware
upload_time2015-10-17 16:05:16
maintainer
docs_urlNone
authorL. C. Rees
requires_pythonNone
licenseBSD
keywords wsgi logging middleware web http
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Supports logging events in WSGI applications to
STDOUT, time rotated log files, email, syslog, and web servers. Also
supports catching and sending HTML-formatted exception tracebacks to a
web browser for debugging.

Simple usage example::

    from wsgilog import log

    @log(tohtml=True, tofile='wsgi.log', tostream=True, toprint=True)
    def app(environ, start_response):
        print 'STDOUT is logged.'
        environ['wsgilog.logger'].info('This information is logged.')
        # Exception will be logged and sent to the browser formatted as HTML.
        raise Exception()

    if __name__ == '__main__':
         from wsgiref.simple_server import make_server
         http = make_server('', 8080, app)
         http.serve_forever()
            

Raw data

            {
    "_id": null,
    "home_page": "UNKNOWN",
    "name": "wsgilog",
    "maintainer": "",
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": "",
    "keywords": "WSGI logging middleware web http",
    "author": "L. C. Rees",
    "author_email": "lcrees@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/00/4e/1df2bab12e6a8253fdb9bbbeba7bc20e2d6734636e84552a419f45618f58/wsgilog-0.3.1.tar.bz2",
    "platform": "UNKNOWN",
    "description": "Supports logging events in WSGI applications to\r\nSTDOUT, time rotated log files, email, syslog, and web servers. Also\r\nsupports catching and sending HTML-formatted exception tracebacks to a\r\nweb browser for debugging.\r\n\r\nSimple usage example::\r\n\r\n    from wsgilog import log\r\n\r\n    @log(tohtml=True, tofile='wsgi.log', tostream=True, toprint=True)\r\n    def app(environ, start_response):\r\n        print 'STDOUT is logged.'\r\n        environ['wsgilog.logger'].info('This information is logged.')\r\n        # Exception will be logged and sent to the browser formatted as HTML.\r\n        raise Exception()\r\n\r\n    if __name__ == '__main__':\r\n         from wsgiref.simple_server import make_server\r\n         http = make_server('', 8080, app)\r\n         http.serve_forever()",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "WSGI logging and event reporting middleware",
    "version": "0.3.1",
    "split_keywords": [
        "wsgi",
        "logging",
        "middleware",
        "web",
        "http"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ef3afc000f1e74ed1be281256776d268533ef5fa12bf0c308582be6ab7dcbbd3",
                "md5": "c515a4473aadce325d9cfbc538e13175",
                "sha256": "6380ee18542d1253a1955712ba358e4099183904ebeecaa9428f5c1960a4e841"
            },
            "downloads": -1,
            "filename": "wsgilog-0.3.1-py2-none-any.whl",
            "has_sig": false,
            "md5_digest": "c515a4473aadce325d9cfbc538e13175",
            "packagetype": "bdist_wheel",
            "python_version": "2.7",
            "requires_python": null,
            "size": 6039,
            "upload_time": "2015-10-17T16:05:06",
            "upload_time_iso_8601": "2015-10-17T16:05:06.986304Z",
            "url": "https://files.pythonhosted.org/packages/ef/3a/fc000f1e74ed1be281256776d268533ef5fa12bf0c308582be6ab7dcbbd3/wsgilog-0.3.1-py2-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "004e1df2bab12e6a8253fdb9bbbeba7bc20e2d6734636e84552a419f45618f58",
                "md5": "f41e5a78815b0835107d98b2e08f4c64",
                "sha256": "696265ea43ac6beb9e4a1ab7456758ace0372f459712d5311eda1a950e99e2f0"
            },
            "downloads": -1,
            "filename": "wsgilog-0.3.1.tar.bz2",
            "has_sig": false,
            "md5_digest": "f41e5a78815b0835107d98b2e08f4c64",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4698,
            "upload_time": "2015-10-17T16:05:16",
            "upload_time_iso_8601": "2015-10-17T16:05:16.072386Z",
            "url": "https://files.pythonhosted.org/packages/00/4e/1df2bab12e6a8253fdb9bbbeba7bc20e2d6734636e84552a419f45618f58/wsgilog-0.3.1.tar.bz2",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "efc7f057ba2854c8a1decd07272bcff9c1942ce6d27fb328ced36275c65765ab",
                "md5": "139d3206e356270d3c1ad17b5cb55c75",
                "sha256": "1b0d9ea25ccffd43f9cac82fe6e3552d68f29e9dcb46de96a0e491d6d4d2af6d"
            },
            "downloads": -1,
            "filename": "wsgilog-0.3.1.zip",
            "has_sig": false,
            "md5_digest": "139d3206e356270d3c1ad17b5cb55c75",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 7936,
            "upload_time": "2015-10-17T16:05:19",
            "upload_time_iso_8601": "2015-10-17T16:05:19.586631Z",
            "url": "https://files.pythonhosted.org/packages/ef/c7/f057ba2854c8a1decd07272bcff9c1942ce6d27fb328ced36275c65765ab/wsgilog-0.3.1.zip",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2015-10-17 16:05:16",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "wsgilog"
}
        
Elapsed time: 0.03688s