News on the Pyjamas logging module: I have enhanced the ConsoleLogger such that it not only uses "console.log()" for logging any message, but now uses the whole spectrum of available methods of the console object (with the exception of assert()): - console.debug() ... for logger.debug() - console.info() ... for logger.info() - console.warn() ... for logger.warn() - console.error() ... for logger.error() and logger.critical() Makes a nice difference on the error console of FF, Chrome, Opera and IE8+. Colors!! :-)
Also, if the console object is not available (e.g. with Pyjamas Desktop) ConsoleLogger now (catches the exception and) falls back to the simple Python print statement. Works great! I've also update the answer to the FAQ on "debug output" on pyjs.org again. Would be nice if that could be uploaded to the webspace. Cheers, Peter 2012/4/2 Peter Bittner <[email protected]>: > Hello all, > > the logging module now seems to work as expected. The FAQ answer > regarding debug output is also updated. > > http://code.google.com/p/pyjamas/issues/detail?id=700 > http://code.google.com/p/pyjamas/issues/detail?id=701 > > The changes on this issues did the fix, it looks like: > http://code.google.com/p/pyjamas/issues/detail?id=706 > > The implementation works for me on Pyjamas and Pyjamas Desktop. What > still may need to be sorted out is that the module names match from > pyjs/src/pyjs/lib/logging and library/pyjamas/logging. > > Peter

