Lumiera  0.pre.03
»edit your freedom«
logging.h
Go to the documentation of this file.
1 /*
2  logging.h - Configure basic nobug logging
3 
4  Copyright (C)
5  2008, 2009 Christian Thaeter <ct@pipapo.org>
6  2009, Hermann Vosseler <Ichthyostega@web.de>
7 
8   **Lumiera** is free software; you can redistribute it and/or modify it
9   under the terms of the GNU General Public License as published by the
10   Free Software Foundation; either version 2 of the License, or (at your
11   option) any later version. See the file COPYING for further details.
12 
13 */
14 
15 #ifndef LUMIERA_LOGGING_H
16 #define LUMIERA_LOGGING_H
17 
56 #include <nobug.h>
57 
59 #ifndef LUMIERA_NOBUG_INIT_CPP
60 #undef NOBUG_DECLARE_ONLY
61 #define NOBUG_DECLARE_ONLY 1
62 #endif
63 
66 
67 
69 NOBUG_CPP_DEFINE_FLAG_PARENT ( debugging, all);
71 NOBUG_CPP_DEFINE_FLAG_PARENT ( main_dbg, debugging);
73 NOBUG_CPP_DEFINE_FLAG_PARENT ( backend_dbg, debugging);
74 NOBUG_CPP_DEFINE_FLAG_PARENT ( file_dbg, backend_dbg);
75 NOBUG_CPP_DEFINE_FLAG_PARENT ( filehandle_dbg, backend_dbg);
76 NOBUG_CPP_DEFINE_FLAG_PARENT ( filehandlecache_dbg, backend_dbg);
77 NOBUG_CPP_DEFINE_FLAG_PARENT ( filedescriptor_dbg, backend_dbg);
78 NOBUG_CPP_DEFINE_FLAG_PARENT ( mmap_dbg, backend_dbg);
79 NOBUG_CPP_DEFINE_FLAG_PARENT ( mmapcache_dbg, backend_dbg);
80 NOBUG_CPP_DEFINE_FLAG_PARENT ( mmapings_dbg, backend_dbg);
81 NOBUG_CPP_DEFINE_FLAG_PARENT ( thread_dbg, backend_dbg);
82 NOBUG_CPP_DEFINE_FLAG_PARENT ( threads_dbg, thread_dbg);
83 NOBUG_CPP_DEFINE_FLAG_PARENT ( threadpool_dbg, thread_dbg);
84 NOBUG_CPP_DEFINE_FLAG_PARENT ( fileheader_dbg, backend_dbg);
85 
87 NOBUG_CPP_DEFINE_FLAG_PARENT ( proc_dbg, debugging);
88 NOBUG_CPP_DEFINE_FLAG_PARENT ( command_dbg, proc_dbg);
89 NOBUG_CPP_DEFINE_FLAG_PARENT ( session_dbg, proc_dbg);
90 NOBUG_CPP_DEFINE_FLAG_PARENT ( player_dbg, proc_dbg);
91 NOBUG_CPP_DEFINE_FLAG_PARENT ( engine_dbg, proc_dbg);
93 NOBUG_CPP_DEFINE_FLAG_PARENT ( gui_dbg, debugging);
95 NOBUG_CPP_DEFINE_FLAG_PARENT ( library_dbg, debugging);
96 NOBUG_CPP_DEFINE_FLAG_PARENT ( mpool_dbg, library_dbg);
97 NOBUG_CPP_DEFINE_FLAG_PARENT ( psplay_dbg, library_dbg);
98 NOBUG_CPP_DEFINE_FLAG_PARENT ( priqueue, library_dbg);
99 NOBUG_CPP_DEFINE_FLAG_PARENT ( resourcecollector_dbg, library_dbg);
100 NOBUG_CPP_DEFINE_FLAG_PARENT ( mutex_dbg, library_dbg);
101 NOBUG_CPP_DEFINE_FLAG_PARENT ( cond_dbg, library_dbg);
103 NOBUG_CPP_DEFINE_FLAG_PARENT ( common_dbg, debugging);
104 NOBUG_CPP_DEFINE_FLAG_PARENT ( config_dbg, common_dbg);
105 NOBUG_CPP_DEFINE_FLAG_PARENT ( configfile_dbg, config_dbg);
106 NOBUG_CPP_DEFINE_FLAG_PARENT ( configitem_dbg, config_dbg);
107 NOBUG_CPP_DEFINE_FLAG_PARENT ( configtyped_dbg, config_dbg);
108 NOBUG_CPP_DEFINE_FLAG_PARENT ( configlookup_dbg, config_dbg);
109 NOBUG_CPP_DEFINE_FLAG_PARENT ( interface_dbg, common_dbg);
110 NOBUG_CPP_DEFINE_FLAG_PARENT ( interfaceregistry_dbg, interface_dbg);
111 NOBUG_CPP_DEFINE_FLAG_PARENT ( pluginloader_dbg, common_dbg);
112 NOBUG_CPP_DEFINE_FLAG_PARENT ( plugins_dbg, debugging);
113 
114 
116 NOBUG_CPP_DEFINE_FLAG_PARENT ( logging, all);
118 NOBUG_CPP_DEFINE_FLAG_PARENT ( progress, logging);
123 NOBUG_CPP_DEFINE_FLAG_PARENT ( mmap, vault); //mmap errors
124 NOBUG_CPP_DEFINE_FLAG_PARENT ( thread, vault); //starting/stopping threads
125 NOBUG_CPP_DEFINE_FLAG_PARENT ( threads, thread);
126 NOBUG_CPP_DEFINE_FLAG_PARENT ( threadpool, thread);
127 NOBUG_CPP_DEFINE_FLAG_PARENT ( fileheader, vault);
143 NOBUG_CPP_DEFINE_FLAG_PARENT ( library, progress);
144 NOBUG_CPP_DEFINE_FLAG_PARENT ( filesys, library); //filesystem operations, opening/closing files...
146 NOBUG_CPP_DEFINE_FLAG_PARENT ( common, progress);
148 NOBUG_CPP_DEFINE_FLAG_PARENT ( configsys, common); //TODO: here seems to be an ambiguity weather "config" should denote the global config channel or the config-loder internals
149 NOBUG_CPP_DEFINE_FLAG_PARENT ( configfiles, configsys); //reading, writing, lookup configfiles
150 NOBUG_CPP_DEFINE_FLAG_PARENT ( configtyped, configsys); //values queried, errors
152 NOBUG_CPP_DEFINE_FLAG_PARENT ( etd, common);
153 NOBUG_CPP_DEFINE_FLAG_PARENT ( diff, etd);
155 NOBUG_CPP_DEFINE_FLAG_PARENT ( interface, common);
156 NOBUG_CPP_DEFINE_FLAG_PARENT ( interfaceregistry, common); //interfaces which get registered/removed
157 NOBUG_CPP_DEFINE_FLAG_PARENT ( guifacade, common);
158 NOBUG_CPP_DEFINE_FLAG_PARENT ( subsystem, common);
160 NOBUG_CPP_DEFINE_FLAG_PARENT ( pluginloader, common); //plugins loaded/unloaded/errors
162 NOBUG_CPP_DEFINE_FLAG_PARENT ( plugins, progress);
165 NOBUG_CPP_DEFINE_FLAG_PARENT ( config, logging); //TODO: here seems to be an ambiguity weather "config" should denote the global config channel or the config-loder internals
166 NOBUG_CPP_DEFINE_FLAG_PARENT ( rules, config);
167 NOBUG_CPP_DEFINE_FLAG_PARENT ( query, config);
168 NOBUG_CPP_DEFINE_FLAG_PARENT ( resolver, config);
169 
173 NOBUG_CPP_DEFINE_FLAG_PARENT ( sync, logging); // do we need subsections here? backend_mutex_sync proc_mutex_sync etc?
174 NOBUG_CPP_DEFINE_FLAG_PARENT ( mutex_sync, sync); //locking/unlocking mutexes
175 NOBUG_CPP_DEFINE_FLAG_PARENT ( cond_sync, sync); //waiting and signalling condition vars
177 NOBUG_CPP_DEFINE_FLAG_PARENT ( memory, logging);
179 NOBUG_CPP_DEFINE_FLAG_PARENT ( proc_mem, memory);
180 NOBUG_CPP_DEFINE_FLAG_PARENT ( mobject_mem, proc_mem);
181 NOBUG_CPP_DEFINE_FLAG_PARENT ( builder_mem, proc_mem);
182 NOBUG_CPP_DEFINE_FLAG_PARENT ( asset_mem, proc_mem);
183 
184 
186 NOBUG_CPP_DEFINE_FLAG_PARENT ( events, all);
188 NOBUG_CPP_DEFINE_FLAG_PARENT ( gui_event, all);
189 
190 
191 
192 #ifndef LUMIERA_NOBUG_INIT_CPP
193 #undef NOBUG_DECLARE_ONLY
194 #define NOBUG_DECLARE_ONLY 0
195 #endif
196 
197 #endif
int main(int argc, const char *argv[])
run all tests or any single test specified in the first command line argument.
Definition: testrunner.cpp:37
Definition: run.hpp:40
Steam-Layer implementation namespace root.
Namespace of Session and user visible high-level objects.
Definition: sequence.hpp:65
NOBUG_CPP_DEFINE_FLAG(all)
the root switch for all logging
Lumiera GTK UI implementation root.
Definition: guifacade.cpp:37
NOBUG_CPP_DEFINE_FLAG_PARENT(debugging, all)
debug logging
Vault-Layer implementation namespace root.