common: Enable log system

Use export LIBYAMI_LOG_LEVEL=log_level to set the control flag, export LIBYAMI_TRACE=log_file to set the file location

Signed-off-by: Tang Xin <xin.t.tang@intel.com>
Do not open file directly. In some sand box environment, open file is not possible