This function writes the log in the logger file as well as on console :param buf: log message :type buf: str :return: None
(self, buf)
| 453 | self.linebuf = '' |
| 454 | |
| 455 | def write(self, buf): |
| 456 | """ |
| 457 | This function writes the log in the logger file as well as on console |
| 458 | |
| 459 | :param buf: log message |
| 460 | :type buf: str |
| 461 | :return: None |
| 462 | """ |
| 463 | |
| 464 | self.terminal.write(buf) |
| 465 | for line in buf.rstrip().splitlines(): |
| 466 | self.logger.log(self.log_level, line.rstrip()) |
| 467 | |
| 468 | def flush(self): |
| 469 | # Function required to be implemented for logger |
no test coverage detected