Package library :: Package pyjamas :: Package logging :: Module handlers :: Class ConsoleHandler
[hide private]
[frames] | no frames]

Class ConsoleHandler

source code

Handler --+
          |
         ConsoleHandler

A log output handler making use of Firebug's console.log() function.

Instance Methods [hide private]
 
__init__(self) source code
 
emit(self, record)
Print a message using the console.debug/info/warn/error/log() functions.
source code
 
__debug(self, msg) source code
 
__info(self, msg) source code
 
__warn(self, msg) source code
 
__error(self, msg) source code
 
__log(self, msg) source code
Class Variables [hide private]
  __consoleFuncForLevel = None
hash(x)
Method Details [hide private]

emit(self, record)

source code 

Print a message using the console.debug/info/warn/error/log() functions. Use a simple print() as a fallback in browsers that don't support console.log -- including Pyjamas Desktop.