File: PKG-INFO

package info (click to toggle)
python-wsgilog 0.3.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 88 kB
  • sloc: python: 163; makefile: 3
file content (42 lines) | stat: -rw-r--r-- 1,648 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Metadata-Version: 1.1
Name: wsgilog
Version: 0.3.1
Summary: WSGI logging and event reporting middleware.
Home-page: UNKNOWN
Author: L. C. Rees
Author-email: lcrees@gmail.com
License: BSD
Description: 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()
            
Keywords: WSGI logging middleware web http
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: System :: Monitoring
Classifier: Topic :: System :: Logging
Classifier: Topic :: Internet :: WWW/HTTP :: Site Management
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware