log2jsconsole 0.4

Simple WSGI middleware that helps to log messages into JavaScript console object

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!

What's new in log2jsconsole 0.4:

  • 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
send us
an update
LICENSE TYPE:
MIT/X Consortium License 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Hong MinHee
HOMEPAGE:
github.com
CATEGORY:
ROOT \ System \ Logging
1 log2jsconsole Screenshot:
log2jsconsole
log2jsconsole provides a simple WSGI middleware that helps to log messages into JavaScript console object. For example, if you log messages like:

logger = logging.getLogger('my.logger')
logger.warning('warning message')
logger.debug('debug message')


The middleware automatically appends codes like following JavaScript:

< script >
// < ![CDATA[
if (console) {
 console.warn('my.logger: warning message');
 console.debug('my.logger: debug message');
}
// ]] >
< /script >


Installation

You can install it by downloading from PyPI through pip or easy_install:

pip install log2jsconsole

How to use

Assume that your WSGI application name is app:

from yourapp import app
from log2jsconsole import LoggingMiddleware


app = LoggingMiddleware(app)

Last updated on June 25th, 2013

requirements

#WSGI middleware #log messages #JavaScript console #WSGI #middleware #message #logger

Add your review!

SUBMIT