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

Class AppendHandler

source code

Handler --+
          |
         AppendHandler

A log output handler showing text in a <div> appended to the end of the HTML document. Use the 'div' property to find out the element's ID if you want to position or style the output in your Pyjamas application.

Instance Methods [hide private]
 
__init__(self, logger_name) source code
 
__getSafeNameFor(self, name)
Strip out all characters that could be invalid for an element ID
source code
 
__addLogElement(self)
Add a container in the DOM where logging output will be written to.
source code
 
emit(self, record) source code
Class Variables [hide private]
  div = None
hash(x)
  div_id = ''
  output = ''
Method Details [hide private]

__addLogElement(self)

source code 

Add a container in the DOM where logging output will be written to. This cannot be done in the constructor as it must happen late enough to ensure a document body (to add an element to) does already exist.