Package bitfling :: Module xmlrpcstuff :: Class FunctionLogHandler
[hide private]
[frames] | no frames]

Class FunctionLogHandler

source code

logging.Filterer --+    
                   |    
     logging.Handler --+
                       |
                      FunctionLogHandler

Log handler that calls a specified function

Instance Methods [hide private]
 
__init__(self, function, level=0)
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

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

Inherited from logging.Filterer: addFilter, filter, removeFilter

Method Details [hide private]

__init__(self, function, level=0)
(Constructor)

source code 

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

Overrides: logging.Filterer.__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)