2 * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * @author Jihoon Chung(jihoon.chung@samsung.com)
23 #ifndef DPL_SECURE_LOG_H
24 #define DPL_SECURE_LOG_H
28 #define COLOR_ERROR "\e[1;31m"
29 #define COLOR_WARNING "\e[2;31m"
30 #define COLOR_END "\e[0m"
31 #define COLOR_TAG "\e[0m"
35 #define LOG_TAG "WRT_UNDEFINED"
41 #define COLOR_TAG "\e[1;32m"
46 #define LOG_TAG "WRT_BUNDLE"
48 #define COLOR_TAG "\e[1;34m"
51 #ifdef WRT_PLUGINS_COMMON_LOG
53 #define LOG_TAG "WRT_PLUGINS/COMMON"
55 #define COLOR_TAG "\e[1;36m"
58 #ifdef WRT_PLUGINS_WIDGET_LOG
60 #define LOG_TAG "WRT_PLUGINS/WIDGET"
62 #define COLOR_TAG "\e[1;35m"
65 #ifdef WRT_INSTALLER_LOG
67 #define LOG_TAG "WRT_INSTALLER"
69 #define COLOR_TAG "\e[1;32m"
73 #define SECURE_SLOGD(fmt, arg...) SLOGD(fmt,##arg)
77 #define SECURE_SLOGW(fmt, arg...) SLOGW(fmt,##arg)
81 #define SECURE_SLOGE(fmt, arg...) SLOGE(fmt,##arg)
84 #define _D(fmt, arg ...) SECURE_SLOGD(COLOR_TAG fmt COLOR_END,##arg)
85 #define _W(fmt, arg ...) SECURE_SLOGW(COLOR_WARNING fmt COLOR_END,##arg)
86 #define _E(fmt, arg ...) SECURE_SLOGE(COLOR_ERROR fmt COLOR_END,##arg)
88 #endif // DPL_SECURE_LOG_H