Emit a record. Append the record. If shouldFlush() tells us to, call flush() to process the buffer.
(self, record)
| 1359 | return (len(self.buffer) >= self.capacity) |
| 1360 | |
| 1361 | def emit(self, record): |
| 1362 | """ |
| 1363 | Emit a record. |
| 1364 | |
| 1365 | Append the record. If shouldFlush() tells us to, call flush() to process |
| 1366 | the buffer. |
| 1367 | """ |
| 1368 | self.buffer.append(record) |
| 1369 | if self.shouldFlush(record): |
| 1370 | self.flush() |
| 1371 | |
| 1372 | def flush(self): |
| 1373 | """ |
nothing calls this directly
no test coverage detected