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)
| 1350 | self.buffer = [] |
| 1351 | |
| 1352 | def shouldFlush(self, record): |
| 1353 | """ |
| 1354 | Should the handler flush its buffer? |
| 1355 | |
| 1356 | Returns true if the buffer is up to capacity. This method can be |
| 1357 | overridden to implement custom flushing strategies. |
| 1358 | """ |
| 1359 | return (len(self.buffer) >= self.capacity) |
| 1360 | |
| 1361 | def emit(self, record): |
| 1362 | """ |
no outgoing calls