class_docstr: Provides instrumentation hooks for important autologging lifecycle events, including:
  
      - Calls to `mlflow.autolog()` APIs
      - Calls to patched APIs with associated termination states
        ("success" and "failure due to error")
      - Calls to original / underlying APIs made by patched function code with
        associated termination states ("success" and "failure due to error")
  
  Default implementations are included for each of these hooks, which emit corresponding
  DEBUG-level logging statements. Developers can provide their own hook implementations
  by subclassing `AutologgingEventLogger` and calling the static
  `AutologgingEventLogger.set_logger()` method to supply a new event logger instance.
  
  Callers fetch the configured logger via `AutologgingEventLogger.get_logger()`
  and invoke one or more hooks (e.g., `AutologgingEventLogger.get_logger().log_autolog_called()`).
docstr: Configures the `AutologgingEventLogger` instance for logging. This instance
  is exposed via `AutologgingEventLogger.get_logger()` and callers use it to invoke
  logging hooks (e.g., AutologgingEventLogger.get_logger().log_autolog_called()).
  
  Args:
      logger: The instance of `AutologgingEventLogger` to use when invoking logging hooks.
code: def set_logger(logger):
      """Configures the `AutologgingEventLogger` instance for logging. This instance
      is exposed via `AutologgingEventLogger.get_logger()` and callers use it to invoke
      logging hooks (e.g., AutologgingEventLogger.get_logger().log_autolog_called()).
  
      Args:
          logger: The instance of `AutologgingEventLogger` to use when invoking logging hooks.
  
      """
      AutologgingEventLogger._event_logger = logger
  
file_path: mlflow/mlflow/utils/autologging_utils/events.py
imports: import warnings
  from mlflow.utils.autologging_utils import _logger
label_desc: Use image node_id 2 for calling the AutologgingEventLogger obj's underlying member method code with example usage: obj.set_logger(logger) without return types