Emit a record. Append the record. If shouldFlush() tells us to, call flush() to process the buffer.
(self, record)
| 1339 | return (len(self.buffer) >= self.capacity) |
| 1340 | |
| 1341 | def emit(self, record): |
| 1342 | """ |
| 1343 | Emit a record. |
| 1344 | |
| 1345 | Append the record. If shouldFlush() tells us to, call flush() to process |
| 1346 | the buffer. |
| 1347 | """ |
| 1348 | self.buffer.append(record) |
| 1349 | if self.shouldFlush(record): |
| 1350 | self.flush() |
| 1351 | |
| 1352 | def flush(self): |
| 1353 | """ |
nothing calls this directly
no test coverage detected