class_docstr: Check https://loguru.readthedocs.io/en/stable/overview.html#entirely-compatible-with-standard-logging
code: def emit(self, record: logging.LogRecord) -> None:
      try:
          level = logger.level(record.levelname).name
      except ValueError:
          level = record.levelno
  
      frame, depth = logging.currentframe(), 2
      while frame.f_code.co_filename == logging.__file__:
          frame = frame.f_back  # type: ignore
          depth += 1
  
      logger.opt(depth=depth, exception=record.exc_info).log(
          level, record.getMessage()
      )
  
file_path: PySyft/packages/grid/backend/grid/logger/handler.py
imports: from __future__ import annotations
  from functools import lru_cache
  import logging
  from pprint import pformat
  import sys
  import loguru
  from loguru import logger
  from .config import get_log_config
label_desc: Use image node_id 1 for calling the InterceptHandler obj's underlying member method code with example usage: obj.emit(record) without return types