Phil, thanks for the testing.
What I have noticed is that the logging module works with Pyjamas Desktop, unfortunately it doesn't work quite that well with pyjs. I hope I'll have some time in the evenings this weekend to look into this more closely. 2012/3/22 Phil Charlesworth <[email protected]>: > I've done a bit of very rudimentary testing of the various handlers > under pyjd on Windows > (just AlertLogger, AppendLogger and PrintLogger and everything seemed to > work. Just one comment. AlertLogger and PrintLogger (and, no doubt, > ConsoleLogger all work with text but AppendLogger is treating the > message as HTML. So, if the record is something like > <Sink.SinkInfo instance at 0x04C5CD28> it doesn't come out. Maybe > AppendHandler needs to call an escape function to turn things that are > special characters to HTML into their equivalent HTML entities. That's strange: The message itself is not modified much, just that line feeds are replaced by br tags: (pyjamas/library/pyjamas/logging/handlers.py, class AppendHandler) def emit(self, record): msg = self.format(record) msg = msg.replace("\n", "<br/>\n") + "<br/>\n" self.output += msg self.__addLogElement() DOM.setInnerHTML(self.div, self.output) Peter

