def log_a_dict(my_dict):
    """Uniform printing of dictionaries to log file
    Pads and indents for easier viewing
    Draws dots from the key to the value
    sorts alphabetically"""
    response_buffer = ""

    spacing = 40
    delimiter = '.'
    alignment = '<'
    # response_buffer += "{header}\n".format(header="=" * (spacing + 20))

    for k, v in sorted(my_dict.iteritems()):
        response_buffer += (
            "\t{key:{delimiter}{alignment}{spacing}} {value}\n"
        ).format(
            key=k,
            delimiter=delimiter,
            alignment=alignment,
            spacing=spacing,
            value=v
        )

    # response_buffer += "{header}".format(header="=" * (spacing + 20))
    return response_buffer