code: def create_handler(cls, message_handler, buffer_size, logger):
          
          cls.BUFFER_SIZE = buffer_size
          cls.message_handler = message_handler
          cls.logger = logger
  
          cls.message_handler.logger = logging.getLogger(message_handler.__class__.__name__)
          cls.message_handler.logger.setLevel(logger.level)
          return cls
docs: Class variables used here since the framework creates an instance for each connection
  
          :param message_handler: the MessageHandler used to process each message.
          :param buffer_size: the TCP buffer size.
          :param logger: the global logger.
          :return: this class.