Package pysys :: Class ThreadFilter
[hide private]
[frames] | no frames]

Class ThreadFilter

source code

      object --+    
               |    
logging.Filterer --+
                   |
                  ThreadFilter

Filter to disallow log records from the current thread.

Within pysys, logging to standard output is only enabled from the main thread of execution (that in which the test runner class executes). When running with more than one test worker thread, logging to file of the test run log is performed through a file handler, which only allows logging from that thread. To disable either of these, use an instance of this class from the thread in question, adding to the root logger via log.addFilter(ThreadFilter()).

Instance Methods [hide private]
 
__init__(self)
Overrides logging.Filterer.__init__
source code
 
filter(self, record)
Implementation of logging.Filterer.filter to block from the creating thread.
source code

Inherited from logging.Filterer: addFilter, removeFilter

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Overrides logging.Filterer.__init__

Overrides: object.__init__

filter(self, record)

source code 

Implementation of logging.Filterer.filter to block from the creating thread.

Overrides: logging.Filterer.filter