Package turbogears :: Module testutil :: Class MemoryListHandler

Class MemoryListHandler

source code

      object --+        
               |        
logging.Filterer --+    
                   |    
     logging.Handler --+
                       |
                      MemoryListHandler

Instance Methods
 
__init__(self)
Initializes the instance - basically setting the formatter to None and the filter list to empty.
source code
 
emit(self, record)
Do whatever it takes to actually log the specified logging record.
source code
 
print_log(self) source code
 
get_log(self) source code

Inherited from logging.Handler: acquire, close, createLock, flush, format, get_name, handle, handleError, release, setFormatter, setLevel, set_name

Inherited from logging.Filterer: addFilter, filter, removeFilter

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables

Inherited from logging.Handler: name

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

Initializes the instance - basically setting the formatter to None and the filter list to empty.

Overrides: object.__init__
(inherited documentation)

emit(self, record)

source code 

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)