Aha!
I used a wrong import statement, sorry!
>> 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.
>
> it does!!
from pyjamas import log
log.write('foo bar baz')
Someone (me? :-) ) should update the related FAQ answer, shouldn't he?
What about extending the log module? Wouldn't it be nice to
a) alternatively log to console.log()
b) align the syntax with Python's logging module?
I personally would like to see log.write()/writebr() go away in favour
of log.debug()/info()/etc. Also, the getBodyElement() and add_elem()
defs should be private.
>> Python's logging module doesn't print out
>> anything when I run the application with pyjd, maybe I'm not using it
>> correctly.
>
> compile with --print-statements
hmmm... don't know if I understand correctly:
import logging
logging.debug('*** This is Python logging ***')
... and compiling with
$ pyjsbuild --print-statements pygit.py
... doesn't show any output (when running the application in the web
browser), neither in the document itself nor in Firebug's console.
Peter