class_docstr: A plain log handler.
  
  This handler writes to whatever sys.stderr points to at emit-time,
  not at instantiation time. See docs for logging._StderrHandler.
docstr: Emit the log message.
  
  If this is a worker, bypass fancy logging and just emit the log record.
  If this is the driver, emit the message using the appropriate console handler.
  
  Args:
      record: Log record to be emitted
docstr_tok: ["Emit","the","log","message",".","If","this","is","a","worker",",","bypass","fancy","logging","and","just","emit","the","log","record",".","If","this","is","the","driver",",","emit","the","message","using","the","appropriate","console","handler",".","Args",":","record",":","Log","record","to","be","emitted"]
code: def emit(self, record: logging.LogRecord):
      """Emit the log message.
  
      If this is a worker, bypass fancy logging and just emit the log record.
      If this is the driver, emit the message using the appropriate console handler.
  
      Args:
          record: Log record to be emitted
      """
      import ray
  
      if (
          hasattr(ray, "_private")
          and hasattr(ray._private, "worker")
          and ray._private.worker.global_worker.mode
          == ray._private.worker.WORKER_MODE
      ):
          self.plain_handler.emit(record)
      else:
          logging._StderrHandler.emit(self, record)
  
file_path: ray/python/ray/_private/log.py
imports: import logging
  import re
  from logging.config import dictConfig
  import threading
  from typing import Union
label_desc: Use image node_id 2 for calling the PlainRayHandler obj's underlying member method code with example usage: obj.emit(record) without return types