Hello everyone,

I found print statements (e.g. print "onhistory", kw) in the (pygit)
code and was wondering whether there was a more appropriate way to
print out debug information, i.e. do (console) logging. There is a
./library/pyjamas/log.py file in Pyjamas, but this doesn't work as a
module you can import. Python's logging module doesn't print out
anything when I run the application with pyjd, maybe I'm not using it
correctly.

Can we come up with a log module---or is there something in Pyjamas
already, and what's missing is just the update to the FAQ question
[1]? It would be nice to have a syntax that matches Python's logging
module (or is there something better?) closely, and would allow
configuring where the output should go: e.g. console.log(),
window.alert(), or appended to the end of the document body. (The
latter seems to be done in ./library/pyjamas/log.py, but I don't quite
get how its use is intended in a pyjamas application.

Probably related, I found a discussion on console.log() in IE dating
from January last year. [2]

Peter

[1] 
http://pyjs.org/faq/answers/i_want_to_throw_some_debug_output_onto_the_screen_how_do_i_best_do_that.html
[2] https://groups.google.com/forum/?fromgroups#!topic/pyjamas-dev/a7na6HP1Ba0

Reply via email to