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()
Metadata
Release files for wsgilog 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distributions (sdists)
| File | Size | Uploaded | |
|---|---|---|---|
| wsgilog-0.3.1.zip | 7.9 kB | Details | |
| wsgilog-0.3.1.tar.bz2 | 4.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wsgilog-0.3.1-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 18.7 kB
Release files / wsgilog-0.3.1.zip
| Download URL | wsgilog-0.3.1.zip |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b0d9ea25ccffd43f9cac82fe6e3552d68f29e9dcb46de96a0e491d6d4d2af6d
|
|
BLAKE2b-256 checksum How to use checksums |
efc7f057ba2854c8a1decd07272bcff9c1942ce6d27fb328ced36275c65765ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / wsgilog-0.3.1.tar.bz2
| Download URL | wsgilog-0.3.1.tar.bz2 |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
696265ea43ac6beb9e4a1ab7456758ace0372f459712d5311eda1a950e99e2f0
|
|
BLAKE2b-256 checksum How to use checksums |
004e1df2bab12e6a8253fdb9bbbeba7bc20e2d6734636e84552a419f45618f58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / wsgilog-0.3.1-py2-none-any.whl
| Download URL | wsgilog-0.3.1-py2-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
6380ee18542d1253a1955712ba358e4099183904ebeecaa9428f5c1960a4e841
|
|
BLAKE2b-256 checksum How to use checksums |
ef3afc000f1e74ed1be281256776d268533ef5fa12bf0c308582be6ab7dcbbd3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |