Module fia_analysis :: Class MyWriter
[hide private]
[frames] | no frames]

Class MyWriter

source code

A file-handler replacement that duplicates the actions applied to the hanlder to a log file handler as well.

Instance Methods [hide private]
 
__init__(self, stdout, filename)
Initialization of the file-handler duplicator.
source code
 
write(self, text)
Replacement for the file handler's write method.
source code
 
flush(self)
Replacement for the file handler's flush method.
source code
 
close(self)
Replacement for the file handler's close method.
source code
Method Details [hide private]

__init__(self, stdout, filename)
(Constructor)

source code 

Initialization of the file-handler duplicator.

Parameters:
  • stdout (file) - Originial file handler to be forked
  • filename (string) - Name of the log file for which actions should be replicated into