class_docstr: This class implement a entity that receives tcp messages on a given address
  For further information, please check
  https://docs.python.org/3/howto/logging-cookbook.html#configuration-server-example
class_docstr_tok: ["This","class","implement","a","entity","that","receives","tcp","messages","on","a","given","address","For","further","information",",","please","check","https",":","\/\/docs.python.org\/3\/howto\/logging-cookbook.html","#","configuration-server-example"]
code: def __init__(
      self,
      host: str = "localhost",
      port: int = logging.handlers.DEFAULT_TCP_LOGGING_PORT,
      handler: Type[LogRecordStreamHandler] = LogRecordStreamHandler,
      logname: Optional[str] = None,
      event: threading.Event = None,
  ):
      socketserver.ThreadingTCPServer.__init__(
          self, (host, port), handler
      )
      self.timeout = 1
      self.logname = logname
      self.event = event
  
imports: from typing import Any, Dict, Iterator, Optional, TextIO, Type, cast
  import logging
  import logging.config
  import logging.handlers
  import multiprocessing
  import os
  import pickle
  import random
  import select
  import socketserver
  import struct
  import threading
  import warnings
  from contextlib import contextmanager
  import yaml
label_desc: Use image node_id 1 to create a new LogRecordSocketReceiver object from inherited base classes: socketserver with example: obj = LogRecordSocketReceiver(host, port, handler, logname, event)