Emit a record. Pickles the record and writes it to the socket in binary format. If there is an error with the socket, silently drop the packet. If there was a problem with the socket, re-establishes the socket.
(self, record)
| 661 | logging.Handler.handleError(self, record) |
| 662 | |
| 663 | def emit(self, record): |
| 664 | """ |
| 665 | Emit a record. |
| 666 | |
| 667 | Pickles the record and writes it to the socket in binary format. |
| 668 | If there is an error with the socket, silently drop the packet. |
| 669 | If there was a problem with the socket, re-establishes the |
| 670 | socket. |
| 671 | """ |
| 672 | try: |
| 673 | s = self.makePickle(record) |
| 674 | self.send(s) |
| 675 | except Exception: |
| 676 | self.handleError(record) |
| 677 | |
| 678 | def close(self): |
| 679 | """ |
nothing calls this directly
no test coverage detected