class_docstr: Wrap inheritors of FileTaskHandler and direct log messages to them based on trigger_id.
  
  :meta private:
class_docstr_tok: ["Wrap","inheritors","of","FileTaskHandler","and","direct","log","messages","to","them","based","on","trigger_id",".",":","meta","private",":"]
code: def __init__(
      self, base_handler: FileTaskHandler, level=logging.NOTSET
  ):
      super().__init__(level=level)
      self.base_handler: FileTaskHandler = base_handler
      self.handlers: dict[int, FileTaskHandler] = {}
  
imports: from __future__ import annotations
  import asyncio
  import logging
  from contextvars import ContextVar
  from copy import copy
  from logging.handlers import QueueHandler
  from typing import TYPE_CHECKING
label_desc: Use image node_id 1 to create a new TriggererHandlerWrapper object from inherited base classes: logging with example: obj = TriggererHandlerWrapper(base_handler, level)