4f036453fdfb518ebd1c5eb9ea38c9a8495a266b
[apps/core/preloaded/lockscreen.git] / src / log.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.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
7  *
8  *  http://www.tizenopensource.org/license
9  *
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.
15  */
16
17 #ifndef __LOG_H__
18 #define __LOG_H__
19
20 #include <dlog.h>
21
22 #ifdef  LOG_TAG
23 #undef  LOG_TAG
24 #endif
25
26 #define LOG_TAG "lockscreen"
27 #define ENABLE_LOG_SYSTEM
28
29 #ifdef ENABLE_LOG_SYSTEM
30 #define LOCK_SCREEN_TRACE_ERR(fmt, arg...)  LOGE("["LOG_TAG"%s:%d:E] : %s "fmt, __FILE__, __LINE__, __func__, ##arg)
31 #define LOCK_SCREEN_TRACE_DBG(fmt, arg...)  LOGD("["LOG_TAG"%s:%d:D] : %s "fmt, __FILE__, __LINE__, __func__, ##arg)
32 #define LOCK_SCREEN_TRACE_WARN(fmt, arg...) LOGW("["LOG_TAG"%s:%d:D] : %s "fmt, __FILE__, __LINE__, __func__, ##arg)
33 #else
34 #define LOCK_SCREEN_TRACE_ERR(fmt, arg...)
35 #define LOCK_SCREEN_TRACE_DBG(fmt, arg...)
36 #define LOCK_SCREEN_TRACE_WARN(fmt, arg...)
37 #endif
38
39 #endif