class_docstr: Handler for a streaming logging request.
  
  This basically logs the record using whatever logging policy is
  configured locally.
class_docstr_tok: ["Handler","for","a","streaming","logging","request",".","This","basically","logs","the","record","using","whatever","logging","policy","is","configured","locally","."]
code: def handleLogRecord(self, record: logging.LogRecord) -> None:
      # logname is define in LogRecordSocketReceiver
      # Yet Mypy Cannot see this. This is needed so that we can
      # re-use the logging setup for autosklearn into the recieved
      # records
      if self.server.logname is not None:  # type: ignore  # noqa
          name = self.server.logname  # type: ignore  # noqa
      else:
          name = record.name
      logger = logging.getLogger(name)
      # N.B. EVERY record gets logged. This is because Logger.handle
      # is normally called AFTER logger-level filtering. If you want
      # to do filtering, do it at the client end to save wasting
      # cycles and network bandwidth!
      logger.handle(record)
  
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 3 for calling the LogRecordStreamHandler obj's underlying member method code with example usage: obj.handleLogRecord(record) without return types