OBMFULL-5718 Adds logging.

Port of OBMFULL-5677 for qa branch.