Add. log_deploys() functionality.

Change-Id: I949ca6206bd1ab18c7f10b7a18bd8bc2c81ac64c