Contents
Contributions are very welcome! For all source changes use the workflows provided by GitHub: Fork the project, apply your changes, make a pull request. See the website's Contribute page for more details.
With pyjs you can use full Python-style logging (Python's flexible event logging module has been ported to pyjs). Additional handlers allow you to display log messages in a dedicated div element in the HTML document, in the Web browser's error console, and with JavaScript's alert() function.
from pyjamas import logging log = logging.getConsoleLogger() # other loggers: Alert, Append, Print ... ... log.error("Hello, here is an %s error", err_name)
For a good understanding of the logging module read the Python Logging HOWTO; most of it directly applies to pyjs. Additional Loggers provided by pyjs, and how you'd use them: