def is_valid_msg(line, log, **kwargs):

    """Function:  is_valid_msg

    Description:  Checks to see that the message is formatted correctly.

    Arguments:
        (input) line -> Single entry line from RabbitMQ queue message.
        (input) log -> Log class instance.
        (output) True|False - If the message is valid.

    """

    log.log_info("is_valid_msg:  Checking validation of message...")
    status = True

    if len(line.split()) == 0:
        log.log_err("Detected no entries in message line.")
        status = False

    elif len(line.split()) > 1:
        log.log_err("Detected more than one entry in message line: %s" %
                    (line))
        status = False

    return status