lightgbm.register_logger

lightgbm.register_logger(logger, info_method_name='info', warning_method_name='warning')[source]

Register custom logger.

Parameters:
  • logger (Any) – Custom logger.

  • info_method_name (str, optional (default="info")) – Method used to log info messages.

  • warning_method_name (str, optional (default="warning")) – Method used to log warning messages.