add htc log functions

Change-Id: I7fcc127fb562f3150757b831d424094c43495cf0