Added const modifiers to the parameters in log_msg_set_key_value_pair function