wsgilog 0.2
WSGI logging and event reporting middleware.
Latest Version: 0.3
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()
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| wsgilog-0.2-py2.6.egg (md5) | Python Egg | 2.6 | 2009-11-21 | 6KB | 604 |
| wsgilog-0.2.tar.bz2 (md5) | Source | 2009-11-21 | 4KB | 471 | |
| wsgilog-0.2.tar.gz (md5) | Source | 2009-11-21 | 4KB | 449 | |
| wsgilog-0.2.zip (md5) | Source | 2009-11-21 | 7KB | 534 | |
- Author: L. C. Rees
- Keywords: WSGI logging middleware
- License: BSD
-
Categories
- Development Status :: 3 - Alpha
- Environment :: Web Environment
- License :: OSI Approved :: BSD License
- Natural Language :: English
- Operating System :: OS Independent
- Programming Language :: Python
- Topic :: Internet :: WWW/HTTP :: Site Management
- Topic :: Internet :: WWW/HTTP :: WSGI
- Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware
- Topic :: System :: Logging
- Topic :: System :: Monitoring
- Package Index Owner: lcrees
- DOAP record: wsgilog-0.2.xml
