#ifndef __LOG_H__
#define __LOG_H__
-#ifndef NO_TIZEN
-#include <dlog.h>
-#else
#include <stdio.h>
-#define LOGE(fmt, args...) printf(fmt, ##args)
-#define LOGD(fmt, args...) printf(fmt, ##args)
-#define LOGI(fmt, args...) printf(fmt, ##args)
-#endif
+#include <dlog.h>
+#define LOGX(fmt, arg...) \
+ ({ do { \
+ dlog_print(DLOG_INFO, LOG_TAG, fmt, ##arg); \
+ } while (0); })
#ifdef LOG_TAG
#undef LOG_TAG
#define _INFO(fmt, args...) LOGI(fmt "\n", ##args)
#endif
+#ifndef _LOGX
+#define _LOGX(fmt, args...) LOGX(fmt "\n", ##args)
+#endif
+
+#ifndef _SOUT
+#define _SOUT(fmt, args...) fprintf(stdout, fmt "\n", ##args)
+#endif
+
+#ifndef _SERR
+#define _SERR(fmt, args...) fprintf(stderr, fmt "\n", ##args)
+#endif
+
#endif /* __LOG_H__ */