The Battle for Wesnoth  1.19.7+dev
log.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2009 - 2024
3  by Mark de Wever <koraq@xs4all.nl>
4  Part of the Battle for Wesnoth Project https://www.wesnoth.org/
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY.
12 
13  See the COPYING file for more details.
14 */
15 
16 /**
17  * @file
18  * Define the common log macros for the gui toolkit.
19  */
20 
21 #pragma once
22 
23 #include "../../log.hpp" // We want the file in src/
24 
25 namespace gui2
26 {
27 
29 #define DBG_GUI_D LOG_STREAM_INDENT(debug, gui2::log_gui_draw)
30 #define LOG_GUI_D LOG_STREAM_INDENT(info, gui2::log_gui_draw)
31 #define WRN_GUI_D LOG_STREAM_INDENT(warn, gui2::log_gui_draw)
32 #define ERR_GUI_D LOG_STREAM_INDENT(err, gui2::log_gui_draw)
33 
35 #define DBG_GUI_E LOG_STREAM_INDENT(debug, gui2::log_gui_event)
36 #define LOG_GUI_E LOG_STREAM_INDENT(info, gui2::log_gui_event)
37 #define WRN_GUI_E LOG_STREAM_INDENT(warn, gui2::log_gui_event)
38 #define ERR_GUI_E LOG_STREAM_INDENT(err, gui2::log_gui_event)
39 
41 #define DBG_GUI_G LOG_STREAM_INDENT(debug, gui2::log_gui_general)
42 #define LOG_GUI_G LOG_STREAM_INDENT(info, gui2::log_gui_general)
43 #define WRN_GUI_G LOG_STREAM_INDENT(warn, gui2::log_gui_general)
44 #define ERR_GUI_G LOG_STREAM_INDENT(err, gui2::log_gui_general)
45 
47 
48 #define TST_GUI_I LOG_STREAM_NAMELESS_STREAMING(debug, gui2::log_gui_iterator)
49 #define DBG_GUI_I LOG_STREAM_INDENT(debug, gui2::log_gui_iterator)
50 #define LOG_GUI_I LOG_STREAM_INDENT(info, gui2::log_gui_iterator)
51 #define WRN_GUI_I LOG_STREAM_INDENT(warn, gui2::log_gui_iterator)
52 #define ERR_GUI_I LOG_STREAM_INDENT(err, gui2::log_gui_iterator)
53 
55 #define DBG_GUI_L LOG_STREAM_INDENT(debug, gui2::log_gui_layout)
56 #define LOG_GUI_L LOG_STREAM_INDENT(info, gui2::log_gui_layout)
57 #define WRN_GUI_L LOG_STREAM_INDENT(warn, gui2::log_gui_layout)
58 #define ERR_GUI_L LOG_STREAM_INDENT(err, gui2::log_gui_layout)
59 
61 // lifetime logging only makes sense in debug level anyway
62 #define DBG_GUI_LF LOG_STREAM_INDENT(debug, gui2::log_gui_lifetime)
63 
64 
66 #define DBG_GUI_P LOG_STREAM_INDENT(debug, gui2::log_gui_parse)
67 #define LOG_GUI_P LOG_STREAM_INDENT(info, gui2::log_gui_parse)
68 #define WRN_GUI_P LOG_STREAM_INDENT(warn, gui2::log_gui_parse)
69 #define ERR_GUI_P LOG_STREAM_INDENT(err, gui2::log_gui_parse)
70 
71 } // namespace gui2
Generic file dialog.
lg::log_domain log_gui_draw("gui/draw")
Definition: log.hpp:28
lg::log_domain log_gui_general("gui/general")
Definition: log.hpp:40
lg::log_domain log_gui_parse("gui/parse")
Definition: log.hpp:65
lg::log_domain log_gui_event("gui/event")
Definition: log.hpp:34
lg::log_domain log_gui_layout("gui/layout")
Definition: log.hpp:54
lg::log_domain log_gui_lifetime("gui/lifetime")
Definition: log.hpp:60
lg::log_domain log_gui_iterator("gui/iterator")
Definition: log.hpp:46