Generic logging function

Change-Id: I6704e95db74fff5e4d4eec6e7d7bceece5c5dd66
Signed-off-by: TanelDettenborn <tanel.dettenborn@intel.com>