Revert "Remove USE_LOGGER and DebugHelper.c."
This reverts commit 57b933381b96bf9e5a80030aa9693dafabd66783.
diff --git a/helper/DebugHelper.h b/helper/DebugHelper.h
index ae1d4af..ae68e3a 100644
--- a/helper/DebugHelper.h
+++ b/helper/DebugHelper.h
@@ -19,9 +19,30 @@
#include "Config.h"
+#if USE_LOGGER
+
#define LOG_TAG "bcc"
#include <cutils/log.h>
+#else // !USE_LOGGER
+
+#undef ALOGV
+#undef ALOGI
+#undef ALOGD
+#undef ALOGW
+#undef ALOGE
+#undef LOGA
+
+#define ALOGV(...)
+#define ALOGI(...)
+#define ALOGD(...)
+#define ALOGW(...)
+#define ALOGE(...)
+#define LOGA(...)
+
+#endif
+
+
#if !USE_FUNC_LOGGER
#define BCC_FUNC_LOGGER()