#ifndef _LOG_H_
#define _LOG_H_

#include <stdio.h>
#include <stdlib.h>
#include <android/log.h>
#define SOEXPORT __attribute__((visibility("default")))
//-------------------------------------------------------------------------------------------------

//#define DEBLOG  //log output flag sync_log_file
#define UNCOMP //δ��ɺ���
//-------------------------------------------------------------------------------------------------
static const char* kTAG = "sh_log";
static const char* kTAGUN = "sh_xxx";

#ifdef DEBLOG

#ifdef UNCOMP
#define LOGX(...) ((void)__android_log_print(ANDROID_LOG_INFO, kTAGUN, __VA_ARGS__))
#endif

#define LOGI(...) ((void)__android_log_print(ANDROID_LOG_INFO, kTAG, __VA_ARGS__))
#define LOGW(...) ((void)__android_log_print(ANDROID_LOG_WARN, kTAG, __VA_ARGS__))
#define LOGE(...) ((void)__android_log_print(ANDROID_LOG_ERROR, kTAG, __VA_ARGS__))
#else
#define LOGI(...)
#define LOGW(...)
#define LOGE(...)
#define LOGX(...)
#endif
//-------------------------------------------------------------------------------------------------
#endif  //_LOG_H_