Change the log level INFO to DEBUG
[profile/tv/apps/web/browser.git] / core / BrowserLogger.h
1 /*
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
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 __BROWSER_LOGGER_H__
18 #define __BROWSER_LOGGER_H__ 1
19
20 #include "browser_config.h"
21 #include <string>
22
23 #if !defined(NDEBUG) || PLATFORM(TIZEN)
24
25 #include "Logger/Logger.h"
26
27 #define BROWSER_LOGD(fmt, args...) tizen_browser::logger::Logger::getInstance().log(tizen_browser::logger::make_message(fmt, ##args))
28 #define BROWSER_LOGI(fmt, args...) tizen_browser::logger::Logger::getInstance().log(tizen_browser::logger::make_message(fmt, ##args))
29 #define BROWSER_LOGW(fmt, args...) tizen_browser::logger::Logger::getInstance().log(tizen_browser::logger::make_message(fmt, ##args))
30 #define BROWSER_LOGE(fmt, args...) tizen_browser::logger::Logger::getInstance().log(tizen_browser::logger::make_message(fmt, ##args))
31
32 #define BROWSER_ENABLE_LOG
33
34 #else
35
36 #define BROWSER_LOGD(fmt, args...) do { } while(0)
37 #define BROWSER_LOGI(fmt, args...) do { } while(0)
38 #define BROWSER_LOGW(fmt, args...) do { } while(0)
39 #define BROWSER_LOGE(fmt, args...) do { } while(0)
40
41 #endif
42
43 #endif /* __BROWSER_LOGGER_H__ */