put log api macro to one single file