add logging functionality for all critical operations

Change-Id: I72eeab94d75d6ba891603779bd9bb4785511fa74