rex.utilities.loggers.add_handlers

add_handlers(logger, handlers)[source]

Add handlers to logger ensuring they do not already exist

Parameters:
  • logger (logging.logger) – Logger to add handlers to

  • handlers (list) – Handlers to add to logger

Returns:

logger (logging.logger) – Logger with updated handlers