Package library :: Package pyjamas :: Module log
[hide private]
[frames] | no frames]

Module log

source code

Use this to output (cumulatively) text at the bottom of the HTML page. NOTE: This module is for convenience only and uses pyjamas.logging, a ported version of Python's logging module. You can use Pyjamas' logging directly as you would with Python, at your option.

Functions [hide private]
 
setLogger(logger)
Replace the logger currently in use by a new one, e.g.
source code
 
debug(msg, *args, **kwargs) source code
 
info(msg, *args, **kwargs) source code
 
warning(msg, *args, **kwargs) source code
 
warn(msg, *args, **kwargs) source code
 
error(msg, *args, **kwargs) source code
 
critical(msg, *args, **kwargs) source code
 
fatal(msg, *args, **kwargs) source code
 
exception(msg, *args) source code
 
write(text) source code
 
writebr(text) source code
Variables [hide private]
  __logger = logging.getAppendLogger(__name__, logging.DEBUG, lo...
Function Details [hide private]

setLogger(logger)

source code 

Replace the logger currently in use by a new one, e.g. log.setLogger(logging.getXxxxLogger()) ... Xxxx = Alert, Append, Console

write(text)

source code 

Deprecated: (since='0.8', replacement=logging.debug)

writebr(text)

source code 

Deprecated: (since='0.8', replacement=logging.debug)


Variables Details [hide private]

__logger

Value:
logging.getAppendLogger(__name__, logging.DEBUG, logging.PLAIN_FORMAT)