# `LogRecordSocketReceiver`

digraph inheritance1fa301be06 { bgcolor=transparent; rankdir=UD; ratio=compress; size="8.0, 12.0"; "BaseServer" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="Base class for server classes."]; "LogRecordSocketReceiver" [URL="#taurus.core.util.remotelogmonitor.LogRecordSocketReceiver",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="Simple TCP socket-based logging receiver suitable for testing."]; "ThreadingTCPServer" -> "LogRecordSocketReceiver" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TCPServer" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="Base class for various socket-based server classes."]; "BaseServer" -> "TCPServer" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ThreadingMixIn" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="Mix-in class to handle each request in a new thread."]; "ThreadingTCPServer" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded]; "ThreadingMixIn" -> "ThreadingTCPServer" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TCPServer" -> "ThreadingTCPServer" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

class LogRecordSocketReceiver(host='localhost', port=9020, handler=<class 'taurus.core.util.remotelogmonitor.LogRecordStreamHandler'>, **kwargs)

  Simple TCP socket-based logging receiver suitable for testing.

  Import from `taurus.core.util.remotelogmonitor` as:

      from taurus.core.util.remotelogmonitor import LogRecordSocketReceiver

  allow_reuse_address = 1
  daemon_threads = True
  registerHandler(handler)
  serve_until_stopped()
  stop()
  unregisterHandler(handler)