debug: implemented logging of DEF_FUNC_HEAD, DEF_FUNC_TAIL and DEF_LABL on application side