<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_items_to_message(msg, log_dict):
 """Utility function to add dictionary items to a log message."""

    out = msg
    for key, value in log_dict.items():
        out += " {}={}".format(key, value)
    return out