From: sung-su.kim Date: Tue, 16 Jul 2013 11:51:37 +0000 (+0900) Subject: [Release] wrt_0.8.240.1 X-Git-Tag: accepted/tizen/20131002.083908~17^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d9ef7c6ecc8f6eed4369ab0486749adb7881b3d9;p=platform%2Fframework%2Fweb%2Fwrt.git [Release] wrt_0.8.240.1 Change-Id: I842db2910f944d81b5c8fb3a448a1816fad72f5d --- diff --git a/src/domain/wrt_log.h b/src/domain/wrt_log.h new file mode 100644 index 0000000..78a3de5 --- /dev/null +++ b/src/domain/wrt_log.h @@ -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 + +#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_ +