add logd code learn