rex.utilities.loggers.log_mem

log_mem(logger, log_level='DEBUG')[source]

Log the memory usage to the input logger object.

Parameters:
  • logger (logging.Logger) – Logger object to log memory message to.

  • log_level (str) – DEBUG or INFO for different log levels for this log message.

Returns:

msg (str) – Memory utilization log message string.