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