class_docstr: Handler used by child processes to forward log messages to parent.
class_docstr_tok: ["Handler","used","by","child","processes","to","forward","log","messages","to","parent","."]
docstr: Enqueue a log message.
docstr_tok: ["Enqueue","a","log","message","."]
code: def enqueue(self, record):
      """Enqueue a log message."""
      self.conn.send(("log", record))
  
imports: from __future__ import annotations
  import logging
  import logging.handlers
  import signal
  from collections.abc import Iterable, Iterator
  from contextlib import suppress
  from enum import Enum, auto
  from itertools import islice, repeat, takewhile, zip_longest
  from multiprocessing import Pipe, Process
  from multiprocessing.connection import Connection, wait
  from typing import Callable
  from ocrmypdf import Executor, hookimpl
  from ocrmypdf._concurrent import NullProgressBar
  from ocrmypdf.exceptions import InputFileError
  from ocrmypdf.helpers import remove_all_log_handlers
label_desc: Use image node_id 2 for calling the ConnectionLogHandler obj's underlying member method code with example usage: obj.enqueue(record) without return types