code: def set_formatter(log_formatter):
          
          # Add our formatter to all the handlers
          root_logger = logging.getLogger()
          for handler in root_logger.handlers:
              handler.setFormatter(logging.Formatter(log_formatter))
docs: Override the default log formatter with your own.