ptypy.utils.verbose.MPIFilter#

class ptypy.utils.verbose.MPIFilter(allprocesses=False)#

Bases: object

A filter that ensures that logging is done only by the master process.

__init__(allprocesses=False)#

A filter that stops logging for all processes except the master node. This behavior can be altered with allprocesses=True.

Methods

__init__([allprocesses])

A filter that stops logging for all processes except the master node.

filter(record)

Filter method, as expected by the logging API.

filter(record)#

Filter method, as expected by the logging API.