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)
| 683 | logging.Handler.handleError(self, record) |
| 684 | |
| 685 | def emit(self, record): |
| 686 | """ |
| 687 | Emit a record. |
| 688 | |
| 689 | Pickles the record and writes it to the socket in binary format. |
| 690 | If there is an error with the socket, silently drop the packet. |
| 691 | If there was a problem with the socket, re-establishes the |
| 692 | socket. |
| 693 | """ |
| 694 | try: |
| 695 | s = self.makePickle(record) |
| 696 | self.send(s) |
| 697 | except Exception: |
| 698 | self.handleError(record) |
| 699 | |
| 700 | def close(self): |
| 701 | """ |
nothing calls this directly
no test coverage detected