Flushes the stream.
(self)
| 1129 | self.stream = stream |
| 1130 | |
| 1131 | def flush(self): |
| 1132 | """ |
| 1133 | Flushes the stream. |
| 1134 | """ |
| 1135 | with self.lock: |
| 1136 | if self.stream and hasattr(self.stream, "flush"): |
| 1137 | self.stream.flush() |
| 1138 | |
| 1139 | def emit(self, record): |
| 1140 | """ |