This method is use to initialize the ProcessLogger class object Args: stream_type: Type of STD (std) Returns: None
(self, stream_type)
| 157 | """ |
| 158 | |
| 159 | def __init__(self, stream_type): |
| 160 | """ |
| 161 | This method is use to initialize the ProcessLogger class object |
| 162 | |
| 163 | Args: |
| 164 | stream_type: Type of STD (std) |
| 165 | |
| 166 | Returns: |
| 167 | None |
| 168 | """ |
| 169 | import codecs |
| 170 | |
| 171 | Thread.__init__(self) |
| 172 | self.process = None |
| 173 | self.stream = None |
| 174 | self.logger = open(os.path.join(_out_dir, stream_type), 'wb', |
| 175 | buffering=0) |
| 176 | |
| 177 | def attach_process_stream(self, process, stream): |
| 178 | """ |