class_docstr: Logs a greeting message without affecting the value passing on the connection.
class_docstr_tok: ["Logs","a","greeting","message","without","affecting","the","value","passing","on","the","connection","."]
docstr: Logs a greeting message without affecting the value passing on the connection.
docstr_tok: ["Logs","a","greeting","message","without","affecting","the","value","passing","on","the","connection","."]
code: def run(
      self,
      value: int,
      message: Optional[str] = None,
      log_level: Optional[str] = None,
  ):
      """
      Logs a greeting message without affecting the value passing on the connection.
      """
      if not message:
          message = self.message
      if not log_level:
          log_level = self.log_level
  
      level = getattr(logging, log_level, None)
      if not level:
          raise ValueError(
              f"This log level does not exist: {log_level}"
          )
  
      logger.log(level=level, msg=message.format(value=value))
      return {"value": value}
  
imports: from typing import Optional
  import logging
  from haystack.core.component import component
label_desc: Use image node_id 2 for calling the Greet obj's underlying member method code with example usage: obj.run(value, message, log_level) and returns: dict