Unify log for RT1051 and linux platform. Add Logger class where common functions for RT1051 and Linux are stored.