2 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
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.
17 #ifndef __BROWSER_LOGGER_H__
18 #define __BROWSER_LOGGER_H__ 1
20 #include "browser_config.h"
23 #if !defined(NDEBUG) || PLATFORM(TIZEN)
25 #include "Logger/Logger.h"
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))
32 #define BROWSER_ENABLE_LOG
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)
43 #endif /* __BROWSER_LOGGER_H__ */