On Tue, Apr 3, 2012 at 5:18 PM, Peter Bittner <[email protected]> wrote:
> 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()

ooOOoo.

> Makes a nice difference on the error console of FF, Chrome, Opera and
> IE8+. Colors!! :-)

 prettyy.

> 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!

 superb peter.  that's really helpful.

> 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.

 ack.

Reply via email to