swot_simulator.logbook.LogRecordSocketReceiver¶
-
class
swot_simulator.logbook.LogRecordSocketReceiver(name: Optional[str] = None, **kwargs)[source]¶ Bases:
tornado.tcpserver.TCPServerSimple TCP socket-based logging receiver.
- Parameters
name (str, optional) – Logger name.
**kwargs – Base class keyword arguments.
-
__init__(name: Optional[str] = None, **kwargs)[source]¶ Initialize self. See help(type(self)) for accurate signature.
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.