swot_simulator.logbook.LogRecordSocketReceiver#
- class swot_simulator.logbook.LogRecordSocketReceiver(name: Optional[str] = None, **kwargs)[source]#
Bases:
TCPServer
Simple TCP socket-based logging receiver.
- Parameters
name (str, optional) – Logger name.
**kwargs – Base class keyword arguments.
Methods
Singular version of add_sockets.
LogRecordSocketReceiver.add_sockets
(sockets)Makes this server start accepting connections on the given sockets.
LogRecordSocketReceiver.bind
(port[, ...])Binds this server to the given port on the given address.
Handle an incoming logging reccord.
Override to handle a new IOStream from an incoming connection.
LogRecordSocketReceiver.listen
(port[, address])Starts accepting connections on the given port.
Starts this server in the .IOLoop.
Stops listening for new connections.