Should the handler flush its buffer? Returns true if the buffer is up to capacity. This method can be overridden to implement custom flushing strategies.
(self, record)
| 1330 | self.buffer = [] |
| 1331 | |
| 1332 | def shouldFlush(self, record): |
| 1333 | """ |
| 1334 | Should the handler flush its buffer? |
| 1335 | |
| 1336 | Returns true if the buffer is up to capacity. This method can be |
| 1337 | overridden to implement custom flushing strategies. |
| 1338 | """ |
| 1339 | return (len(self.buffer) >= self.capacity) |
| 1340 | |
| 1341 | def emit(self, record): |
| 1342 | """ |