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","."]
docstr: Handle multiple requests - each expected to be a 4-byte length,
  followed by the LogRecord in pickle format. Logs the record
  according to whatever policy is configured locally.
docstr_tok: ["Handle","multiple","requests","-","each","expected","to","be","a","4-byte","length",",","followed","by","the","LogRecord","in","pickle","format",".","Logs","the","record","according","to","whatever","policy","is","configured","locally","."]
code: def handle(self) -> None:
      """
      Handle multiple requests - each expected to be a 4-byte length,
      followed by the LogRecord in pickle format. Logs the record
      according to whatever policy is configured locally.
      """
      while True:
          chunk = self.connection.recv(4)  # type: ignore[attr-defined]
          if len(chunk) < 4:
              break
          slen = struct.unpack(">L", chunk)[0]
          chunk = self.connection.recv(slen)  # type: ignore[attr-defined]
          while len(chunk) < slen:
              chunk = chunk + self.connection.recv(slen - len(chunk))  # type: ignore[attr-defined]  # noqa: E501
          obj = self.unPickle(chunk)
          record = logging.makeLogRecord(obj)
          self.handleLogRecord(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 1 for calling the LogRecordStreamHandler obj's underlying member method code with example usage: obj.handle() without return types