#define LOG_TAG "DIAG_SERVER" and in mk file: LOCAL_SHARED_LIBRARIES += liblog ALOGE("%s enter", __func__);