log2jsconsole 0.4

Simple WSGI middleware that helps to log messages into JavaScript console object
log2jsconsole provides a simple WSGI middleware that helps to log messages into JavaScript console object. For example, if you log messages like:<br /><br /><em>logger = logging.getLogger('my.logger')<br />logger.warning('warning message')<br />logger.debug('debug message')</em><br /><br />The middleware automatically appends codes like following JavaScript:<br /><br /><em>< script ><br />// < ![CDATA[<br />if (console) {<br /> console.warn('my.logger: warning message');<br /> console.debug('my.logger: debug message');<br />}<br />// ]] ><br />< /script ></em><br /><br /><strong>Installation</strong><br /><br />You can install it by downloading from PyPI through pip or easy_install:<br /><br /><em>pip install log2jsconsole</em><br /><br /><strong>How to use</strong><br /><br />Assume that your WSGI application name is app:<br /><br /><em>from yourapp import app<br />from log2jsconsole import LoggingMiddleware</em><br /><br /><em>app = LoggingMiddleware(app)</em><br />

last updated on:
June 25th, 2013, 2:59 GMT
price:
FREE!
developed by:
Hong MinHee
license type:
MIT/X Consortium License 
category:
ROOT \ System \ Logging

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

1 Screenshot
log2jsconsole
What's New in This Release:
  • Support for Python Paste filter entry point. [#1 by Roberto De Almeida]
  • Fixed incompatibile signature (according to PEP 333) of start_response. [#1 by Roberto De Almeida]
read full changelog

Add your review!

SUBMIT