gui/auxiliary/log.hpp

Go to the documentation of this file.
00001 /* $Id: log.hpp 54024 2012-04-29 17:08:00Z mordante $ */
00002 /*
00003    Copyright (C) 2009 - 2012 by Mark de Wever <koraq@xs4all.nl>
00004    Part of the Battle for Wesnoth Project http://www.wesnoth.org/
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 2 of the License, or
00009    (at your option) any later version.
00010    This program is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY.
00012 
00013    See the COPYING file for more details.
00014 */
00015 
00016 /**
00017  * @file
00018  * Define the common log macros for the gui toolkit.
00019  */
00020 
00021 #ifndef GUI_AUXILIARY_LOG_HPP_INCLUDED
00022 #define GUI_AUXILIARY_LOG_HPP_INCLUDED
00023 
00024 #include "../../log.hpp"
00025 
00026 namespace gui2 {
00027 
00028 extern lg::log_domain log_gui_draw;
00029 #define DBG_GUI_D LOG_STREAM_INDENT(debug, gui2::log_gui_draw)
00030 #define LOG_GUI_D LOG_STREAM_INDENT(info,  gui2::log_gui_draw)
00031 #define WRN_GUI_D LOG_STREAM_INDENT(warn,  gui2::log_gui_draw)
00032 #define ERR_GUI_D LOG_STREAM_INDENT(err,   gui2::log_gui_draw)
00033 
00034 extern lg::log_domain log_gui_event;
00035 #define DBG_GUI_E LOG_STREAM_INDENT(debug, gui2::log_gui_event)
00036 #define LOG_GUI_E LOG_STREAM_INDENT(info,  gui2::log_gui_event)
00037 #define WRN_GUI_E LOG_STREAM_INDENT(warn,  gui2::log_gui_event)
00038 #define ERR_GUI_E LOG_STREAM_INDENT(err,   gui2::log_gui_event)
00039 
00040 extern lg::log_domain log_gui_general;
00041 #define DBG_GUI_G LOG_STREAM_INDENT(debug, gui2::log_gui_general)
00042 #define LOG_GUI_G LOG_STREAM_INDENT(info,  gui2::log_gui_general)
00043 #define WRN_GUI_G LOG_STREAM_INDENT(warn,  gui2::log_gui_general)
00044 #define ERR_GUI_G LOG_STREAM_INDENT(err,   gui2::log_gui_general)
00045 
00046 extern lg::log_domain log_gui_iterator;
00047 #define TST_GUI_I \
00048     if(lg::debug.dont_log(gui2::log_gui_iterator)); \
00049     else lg::debug(gui2::log_gui_iterator, false, false)
00050 #define DBG_GUI_I LOG_STREAM_INDENT(debug, gui2::log_gui_iterator)
00051 #define LOG_GUI_I LOG_STREAM_INDENT(info,  gui2::log_gui_iterator)
00052 #define WRN_GUI_I LOG_STREAM_INDENT(warn,  gui2::log_gui_iterator)
00053 #define ERR_GUI_I LOG_STREAM_INDENT(err,   gui2::log_gui_iterator)
00054 
00055 extern lg::log_domain log_gui_layout;
00056 #define DBG_GUI_L LOG_STREAM_INDENT(debug, gui2::log_gui_layout)
00057 #define LOG_GUI_L LOG_STREAM_INDENT(info,  gui2::log_gui_layout)
00058 #define WRN_GUI_L LOG_STREAM_INDENT(warn,  gui2::log_gui_layout)
00059 #define ERR_GUI_L LOG_STREAM_INDENT(err,   gui2::log_gui_layout)
00060 
00061 extern lg::log_domain log_gui_lifetime;
00062 //lifetime logging only makes sense in debug level anyway
00063 #define DBG_GUI_LF LOG_STREAM_INDENT(debug, gui2::log_gui_lifetime)
00064 
00065 
00066 extern lg::log_domain log_gui_parse;
00067 #define DBG_GUI_P LOG_STREAM_INDENT(debug, gui2::log_gui_parse)
00068 #define LOG_GUI_P LOG_STREAM_INDENT(info,  gui2::log_gui_parse)
00069 #define WRN_GUI_P LOG_STREAM_INDENT(warn,  gui2::log_gui_parse)
00070 #define ERR_GUI_P LOG_STREAM_INDENT(err,   gui2::log_gui_parse)
00071 
00072 } // namespace gui2
00073 
00074 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:02:54 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs