Package isnLib :: Package gui :: Class wxLogHandler
[show private | hide private]
[frames | no frames]

Class wxLogHandler

Filterer --+    
           |    
     Handler --+
               |
              wxLogHandler


A handler class which writes logging records, appropriately formatted, to a wxListBox
Method Summary
  __init__(self, listCtrl)
Initialize the handler.
  emit(self, record)
Do whatever it takes to actually log the specified logging record.
    Inherited from Handler
  acquire(self)
Acquire the I/O thread lock.
  close(self)
Tidy up any resources used by the handler.
  createLock(self)
Acquire a thread lock for serializing access to the underlying I/O.
  flush(self)
Ensure all logging output has been flushed.
  format(self, record)
Format the specified record.
  handle(self, record)
Conditionally emit the specified logging record.
  handleError(self, record)
Handle errors which occur during an emit() call.
  release(self)
Release the I/O thread lock.
  setFormatter(self, fmt)
Set the formatter for this handler.
  setLevel(self, level)
Set the logging level of this handler.
    Inherited from Filterer
  addFilter(self, filter)
Add the specified filter to this handler.
  filter(self, record)
Determine if a record is loggable by consulting all the filters.
  removeFilter(self, filter)
Remove the specified filter from this handler.

Method Details

__init__(self, listCtrl)
(Constructor)

Initialize the handler.

If strm is not specified, sys.stderr is used.
Overrides:
logging.Handler.__init__

emit(self, record)

Do whatever it takes to actually log the specified logging record.

This version is intended to be implemented by subclasses and so raises a NotImplementedError.
Overrides:
logging.Handler.emit (inherited documentation)

Generated by Epydoc 2.0 on Thu Dec 25 10:59:57 2003 http://epydoc.sf.net