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.

__init__(name: Optional[str] = None, **kwargs)[source]#

Methods

LogRecordSocketReceiver.add_socket(socket)

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.

LogRecordSocketReceiver.handle_log_record(record)

Handle an incoming logging reccord.

LogRecordSocketReceiver.handle_stream(...)

Override to handle a new IOStream from an incoming connection.

LogRecordSocketReceiver.listen(port[, address])

Starts accepting connections on the given port.

LogRecordSocketReceiver.start([...])

Starts this server in the .IOLoop.

LogRecordSocketReceiver.stop()

Stops listening for new connections.