[Release] wrt_0.8.240.1
authorsung-su.kim <sung-su.kim@samsung.com>
Tue, 16 Jul 2013 11:51:37 +0000 (20:51 +0900)
committerHoseon LEE <hoseon46.lee@samsung.com>
Sun, 29 Sep 2013 05:37:22 +0000 (14:37 +0900)
Change-Id: I842db2910f944d81b5c8fb3a448a1816fad72f5d

src/domain/wrt_log.h [new file with mode: 0644]

diff --git a/src/domain/wrt_log.h b/src/domain/wrt_log.h
new file mode 100644 (file)
index 0000000..78a3de5
--- /dev/null
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+/**
+ * @file       wrt_log.h
+ * @author     Jihoon Chung(jihoon.chung@samsung.com)
+ * @version    0.1
+ * @brief
+ */
+
+#ifndef WRT_SRC_DOMAIN_WRT_LOG_H_
+#define WRT_SRC_DOMAIN_WRT_LOG_H_
+
+#include <dlog.h>
+
+#ifdef WRT_LOG
+#undef LOG_TAG
+#define LOG_TAG "WRT"
+#endif
+
+#ifdef WRT_BUNDLE_LOG
+#undef LOG_TAG
+#define LOG_TAG "WRT_BUNDLE"
+#endif
+
+#ifndef SECURE_SLOGD
+#define SECURE_SLOGD(fmt, arg...) SLOGD(fmt,##arg)
+#endif
+
+#ifndef SECURE_SLOGW
+#define SECURE_SLOGW(fmt, arg...) SLOGW(fmt,##arg)
+#endif
+
+#ifndef SECURE_SLOGE
+#define SECURE_SLOGE(fmt, arg...) SLOGE(fmt,##arg)
+#endif
+
+#define _D(fmt, arg ...) SECURE_SLOGD(fmt,##arg)
+#define _W(fmt, arg ...) SECURE_SLOGW(fmt,##arg)
+#define _E(fmt, arg ...) SECURE_SLOGE(fmt,##arg)
+
+#endif // WRT_SRC_DOMAIN_WRT_LOG_H_
+