Implement basic logging.

Change-Id: I5fb4b804a576a05628fec50ad92a437d5a523cac