Log refactor

Refactor log event in OpenIAB Library.