Flutter Engine
The Flutter Engine
|
Public Member Functions | |
def | __init__ (self, logging_level=logging.WARNING) |
def | FileEmitter (self, filename, key=None) |
def | Associate (self, key, emitter) |
def | Find (self, key) |
def | Flush (self, writer=None) |
A set of Emitters that write to different files. Each entry has a key. file --> emitter key --> emitter
Definition at line 17 of file multiemitter.py.
def scripts.multiemitter.MultiEmitter.__init__ | ( | self, | |
logging_level = logging.WARNING |
|||
) |
Definition at line 27 of file multiemitter.py.
def scripts.multiemitter.MultiEmitter.Associate | ( | self, | |
key, | |||
emitter | |||
) |
Associates a key with an emitter.
Definition at line 51 of file multiemitter.py.
def scripts.multiemitter.MultiEmitter.FileEmitter | ( | self, | |
filename, | |||
key = None |
|||
) |
Creates an emitter for writing to a file. When this MultiEmitter is flushed, the contents of the emitter are written to the file. Arguments: filename: a string, the path name of the file key: provides an access key to retrieve the emitter. Returns: the emitter.
Definition at line 33 of file multiemitter.py.
def scripts.multiemitter.MultiEmitter.Find | ( | self, | |
key | |||
) |
Returns the emitter associated with |key|.
Definition at line 55 of file multiemitter.py.
def scripts.multiemitter.MultiEmitter.Flush | ( | self, | |
writer = None |
|||
) |
Writes all pending files. Arguments: writer: a function called for each file and it's lines.
Definition at line 59 of file multiemitter.py.