Package cherrypy :: Module _cplogging :: Class NullHandler
[hide private]
[frames] | no frames]

Class NullHandler

source code

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

A no-op logging handler to silence the logging.lastResort handler.

Instance Methods [hide private]
 
handle(self, record)
Conditionally emit the specified logging record.
source code
 
emit(self, record)
Do whatever it takes to actually log the specified logging record.
source code
 
createLock(self)
Acquire a thread lock for serializing access to the underlying I/O.
source code

Inherited from logging.Handler: __init__, acquire, close, flush, format, get_name, 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__

Properties [hide private]

Inherited from logging.Handler: name

Inherited from object: __class__

Method Details [hide private]

handle(self, record)

source code 

Conditionally emit the specified logging record.

Emission depends on filters which may have been added to the handler. Wrap the actual emission of the record with acquisition/release of the I/O thread lock. Returns whether the filter passed the record for emission.

Overrides: logging.Handler.handle
(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)

createLock(self)

source code 

Acquire a thread lock for serializing access to the underlying I/O.

Overrides: logging.Handler.createLock
(inherited documentation)