Update codes for TIZEN 2.0
[apps/home/memo.git] / include / memo_log.h
1 /*
2 *
3 * Copyright 2012  Samsung Electronics Co., Ltd
4 *
5 * Licensed under the Flora License, Version 1.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 *    http://www.tizenopensource.org/license
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 */
18
19 #ifndef __MEMO_LOG_H__
20 #define __MEMO_LOG_H__
21
22 #include <dlog.h>
23
24 #ifdef  LOG_TAG
25 #undef  LOG_TAG
26 #endif
27 #define LOG_TAG "MEMO"
28
29
30 #ifdef PERFORMANCE_LOG
31 #define DBG(fmt, arg...) SLOGD("%s(%d) " fmt, __FUNCTION__, __LINE__, ##arg)
32 #define MEMO_FUN_BEG() DBG("START")
33 #define MEMO_FUN_END() DBG("END")
34 #else
35 #define MEMO_FUN_BEG()
36 #define MEMO_FUN_END()
37 #endif
38
39 #endif                /* __MEMO_LOG_H__ */