1 /* log - a generic logging facility in the spirit of log4j */
3 /* Copyright (c) 2004-2011. The SimGrid Team.
4 * All rights reserved. */
6 /* This program is free software; you can redistribute it and/or modify it
7 * under the terms of the license (GNU LGPL) which comes with this package. */
9 /** @addtogroup XBT_log
10 * @brief A generic logging facility in the spirit of log4j (grounding feature)
15 /** \defgroup XBT_log_cats Existing log categories
17 * \brief (automatically extracted)
19 * This is the list of all existing log categories in SimGrid.
20 * This list was automatically extracted from the source code by
21 * the tools/doxygen/xbt_log_extract_hierarchy.pl utility.
23 * You can thus be certain that it is uptodate, but it may somehow
24 * lack a final manual touch.
25 * Anyway, nothing's perfect ;)
28 /* XBT_LOG_MAYDAY: define this to replace the logging facilities with basic
29 printf function. Useful to debug the logging facilities themselves */
31 //#define XBT_LOG_MAYDAY
38 #include <stddef.h> /* NULL */
40 /**\brief Log priorities
43 * The different existing priorities.
46 xbt_log_priority_none = 0, /* used internally (don't poke with) */
47 xbt_log_priority_trace = 1, /**< enter and return of some functions */
48 xbt_log_priority_debug = 2, /**< crufty output */
49 xbt_log_priority_verbose = 3, /**< verbose output for the user wanting more */
50 xbt_log_priority_info = 4, /**< output about the regular functionning */
51 xbt_log_priority_warning = 5, /**< minor issue encountered */
52 xbt_log_priority_error = 6, /**< issue encountered */
53 xbt_log_priority_critical = 7, /**< major issue encountered */
55 xbt_log_priority_infinite = 8, /**< value for XBT_LOG_STATIC_THRESHOLD to not log */
57 xbt_log_priority_uninitialized = -1 /* used internally (don't poke with) */
58 } e_xbt_log_priority_t;
62 * define NLOG to disable at compilation time any logging request
63 * define NDEBUG to disable at compilation time any logging request of priority below INFO
68 * @def XBT_LOG_STATIC_THRESHOLD
71 * All logging requests with priority < XBT_LOG_STATIC_THRESHOLD are disabled at
72 * compile time, i.e., compiled out.
75 # define XBT_LOG_STATIC_THRESHOLD xbt_log_priority_infinite
79 # define XBT_LOG_STATIC_THRESHOLD xbt_log_priority_verbose
80 # else /* !NLOG && !NDEBUG */
82 # ifndef XBT_LOG_STATIC_THRESHOLD
83 # define XBT_LOG_STATIC_THRESHOLD xbt_log_priority_none
84 # endif /* !XBT_LOG_STATIC_THRESHOLD */
86 #endif /* !defined(NLOG) */
88 /* Transforms a category name to a global variable name. */
89 #define _XBT_LOGV(cat) _XBT_LOG_CONCAT(_simgrid_log_category__, cat)
90 #define _XBT_LOGV_CTOR(cat) _XBT_LOG_CONCAT2(_XBT_LOGV(cat), __constructor__)
91 #define _XBT_LOG_CONCAT(x, y) x ## y
92 #define _XBT_LOG_CONCAT2(x, y) _XBT_LOG_CONCAT(x, y)
93 /* Apparently, constructor priorities are not supported by gcc on Macs */
94 #if __GNUC__ && __APPLE__
95 # define _XBT_LOGV_CTOR_ATTRIBUTE
97 # define _XBT_LOGV_CTOR_ATTRIBUTE _XBT_GNUC_CONSTRUCTOR(600)
100 /* The root of the category hierarchy. */
101 #define XBT_LOG_ROOT_CAT root
103 /* The whole tree of categories is connected by setting the address of the
104 * parent category as a field of the child one. This is normally done at the
105 * first use of the category.
107 * It is however necessary to make this connections as early as possible, if we
108 * want the category to be listed by --help-log-categories.
110 * When possible, the initializations takes place automatically before the start
111 * of main(). It's the case when compiling with gcc.
113 * For the other cases, you can use the XBT_LOG_CONNECT(cat) macro to force
114 * early initialization. See, for example, in xbt/log.c, the function
115 * xbt_log_connect_categories().
118 #define XBT_LOG_CONNECT(cat) \
120 extern void _XBT_LOGV_CTOR(cat)(void); \
121 _XBT_LOGV_CTOR(cat)(); \
124 /* XBT_LOG_NEW_SUBCATEGORY_helper:
125 * Implementation of XBT_LOG_NEW_SUBCATEGORY, which must declare "extern parent" in addition
126 * to avoid an extra declaration of root when XBT_LOG_NEW_SUBCATEGORY is called by
127 * XBT_LOG_NEW_CATEGORY */
128 #define XBT_LOG_NEW_SUBCATEGORY_helper(catName, parent, desc) \
129 XBT_PUBLIC(void) _XBT_LOGV_CTOR(catName)(void) _XBT_LOGV_CTOR_ATTRIBUTE; \
130 void _XBT_LOGV_CTOR(catName)(void) \
132 XBT_LOG_EXTERNAL_CATEGORY(catName); \
133 if (!_XBT_LOGV(catName).initialized) { \
134 _xbt_log_cat_init(&_XBT_LOGV(catName), xbt_log_priority_uninitialized); \
137 XBT_EXPORT_NO_IMPORT(s_xbt_log_category_t) _XBT_LOGV(catName) = { \
138 &_XBT_LOGV(parent), \
139 NULL /* firstChild */, \
140 NULL /* nextSibling */, \
143 0 /*initialized */, \
144 xbt_log_priority_uninitialized /* threshold */, \
145 1 /* isThreshInherited */, \
146 NULL /* appender */, \
153 * \param catName name of new category
154 * \param parent father of the new category in the tree
155 * \param desc string describing the purpose of this category
158 * Defines a new subcategory of the parent.
160 #define XBT_LOG_NEW_SUBCATEGORY(catName, parent, desc) \
161 XBT_LOG_EXTERNAL_CATEGORY(parent); \
162 XBT_LOG_NEW_SUBCATEGORY_helper(catName, parent, desc) \
166 * \param catName name of new category
167 * \param desc string describing the purpose of this category
170 * Creates a new subcategory of the root category.
172 # define XBT_LOG_NEW_CATEGORY(catName,desc) \
173 XBT_LOG_NEW_SUBCATEGORY_helper(catName, XBT_LOG_ROOT_CAT, desc)
178 * \param cname name of the cat
181 * Indicates which category is the default one.
184 #if defined(XBT_LOG_MAYDAY) || defined(SUPERNOVAE_MODE) /*|| defined (NLOG) * turning logging off */
185 # define XBT_LOG_DEFAULT_CATEGORY(cname)
187 # define XBT_LOG_DEFAULT_CATEGORY(cname) \
188 static xbt_log_category_t _XBT_LOGV(default) _XBT_GNUC_UNUSED = &_XBT_LOGV(cname)
193 * \param cname name of the cat
194 * \param desc string describing the purpose of this category
197 * Creates a new subcategory of the root category and makes it the default
198 * (used by macros that don't explicitly specify a category).
200 # define XBT_LOG_NEW_DEFAULT_CATEGORY(cname,desc) \
201 XBT_LOG_NEW_CATEGORY(cname,desc); \
202 XBT_LOG_DEFAULT_CATEGORY(cname)
206 * \param cname name of the cat
207 * \param parent name of the parent
208 * \param desc string describing the purpose of this category
211 * Creates a new subcategory of the parent category and makes it the default
212 * (used by macros that don't explicitly specify a category).
214 #define XBT_LOG_NEW_DEFAULT_SUBCATEGORY(cname, parent, desc) \
215 XBT_LOG_NEW_SUBCATEGORY(cname, parent, desc); \
216 XBT_LOG_DEFAULT_CATEGORY(cname)
220 * \param cname name of the cat
223 * Indicates that a category you'll use in this file (to get subcategories of it,
224 * for example) really lives in another file.
227 #define XBT_LOG_EXTERNAL_CATEGORY(cname) \
228 extern s_xbt_log_category_t _XBT_LOGV(cname)
232 * \param cname name of the cat
235 * Indicates that the default category of this file was declared in another file.
238 #define XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(cname) \
239 XBT_LOG_EXTERNAL_CATEGORY(cname);\
240 XBT_LOG_DEFAULT_CATEGORY(cname)
242 /* Functions you may call */
244 XBT_PUBLIC(void) xbt_log_control_set(const char *cs);
246 /* Forward declarations */
247 typedef struct xbt_log_appender_s s_xbt_log_appender_t,
249 typedef struct xbt_log_layout_s s_xbt_log_layout_t, *xbt_log_layout_t;
250 typedef struct xbt_log_event_s s_xbt_log_event_t, *xbt_log_event_t;
251 typedef struct xbt_log_category_s s_xbt_log_category_t,
255 * Do NOT access any members of this structure directly. FIXME: move to private?
258 struct xbt_log_category_s {
259 xbt_log_category_t parent;
260 xbt_log_category_t firstChild;
261 xbt_log_category_t nextSibling;
263 const char *description;
266 int isThreshInherited;
267 xbt_log_appender_t appender;
268 xbt_log_layout_t layout;
272 struct xbt_log_event_s {
273 xbt_log_category_t cat;
274 e_xbt_log_priority_t priority;
275 const char *fileName;
276 const char *functionName;
284 * \ingroup XBT_log_implem
285 * \param cat the category (not only its name, but the variable)
286 * \param thresholdPriority the priority
288 * Programatically alters a category's threshold priority (don't use).
290 XBT_PUBLIC(void) xbt_log_threshold_set(xbt_log_category_t cat,
295 * \ingroup XBT_log_implem
296 * \param cat the category (not only its name, but the variable)
297 * \param app the appender
299 * Programatically sets the category's appender.
300 * (the prefered interface is throught xbt_log_control_set())
303 XBT_PUBLIC(void) xbt_log_appender_set(xbt_log_category_t cat,
304 xbt_log_appender_t app);
306 * \ingroup XBT_log_implem
307 * \param cat the category (not only its name, but the variable)
308 * \param lay the layout
310 * Programatically sets the category's layout.
311 * (the prefered interface is throught xbt_log_control_set())
314 XBT_PUBLIC(void) xbt_log_layout_set(xbt_log_category_t cat,
315 xbt_log_layout_t lay);
318 * \ingroup XBT_log_implem
319 * \param cat the category (not only its name, but the variable)
320 * \param additivity whether logging actions must be passed to parent.
322 * Programatically sets whether the logging actions must be passed to
323 * the parent category.
324 * (the prefered interface is throught xbt_log_control_set())
327 XBT_PUBLIC(void) xbt_log_additivity_set(xbt_log_category_t cat,
330 /** @brief create a new simple layout
332 * This layout is not as flexible as the pattern one
334 XBT_PUBLIC(xbt_log_layout_t) xbt_log_layout_simple_new(char *arg);
335 XBT_PUBLIC(xbt_log_layout_t) xbt_log_layout_format_new(char *arg);
336 XBT_PUBLIC(xbt_log_appender_t) xbt_log_appender_file_new(char *arg);
339 /* ********************************** */
340 /* Functions that you shouldn't call */
341 /* ********************************** */
342 XBT_PUBLIC(void) _xbt_log_event_log(xbt_log_event_t ev,
344 ...) _XBT_GNUC_PRINTF(2, 3);
346 XBT_PUBLIC(int) _xbt_log_cat_init(xbt_log_category_t category,
347 e_xbt_log_priority_t priority);
350 XBT_PUBLIC_DATA(s_xbt_log_category_t) _XBT_LOGV(XBT_LOG_ROOT_CAT);
353 extern xbt_log_appender_t xbt_log_default_appender;
354 extern xbt_log_layout_t xbt_log_default_layout;
356 /* ********************** */
357 /* Public functions again */
358 /* ********************** */
362 * \param catName name of the category
363 * \param priority minimal priority to be enabled to return true (must be #e_xbt_log_priority_t)
366 * Returns true if the given priority is enabled for the category.
367 * If you have expensive expressions that are computed outside of the log
368 * command and used only within it, you should make its evaluation conditional
371 #define XBT_LOG_ISENABLED(catName, priority) \
372 _XBT_LOG_ISENABLEDV(_XBT_LOGV(catName), priority)
375 * Helper function that implements XBT_LOG_ISENABLED.
378 * First part is a compile-time constant.
379 * Call to xbt_log_cat_init only happens once.
381 #define _XBT_LOG_ISENABLEDV(catv, priority) \
382 (priority >= XBT_LOG_STATIC_THRESHOLD \
383 && (catv.initialized || _xbt_log_cat_init(&catv, priority)) \
384 && priority >= catv.threshold)
388 * Some kludge macros to ease maintenance. See how they're used below.
390 * IMPLEMENTATION NOTE: To reduce the parameter passing overhead of an enabled
391 * message, the many parameters passed to the logging function are packed in a
392 * structure. Since these values will be usually be passed to at least 3
393 * functions, this is a win.
394 * It also allows adding new values (such as a timestamp) without breaking
396 * Setting the LogEvent's valist member is done inside _log_logEvent.
401 #ifdef XBT_LOG_MAYDAY
402 # define XBT_CLOG(cat, prio, ...) \
403 _XBT_IF_ONE_ARG(_XBT_CLOG_ARG1, _XBT_CLOG_ARGN, __VA_ARGS__)(__VA_ARGS__)
404 # define _XBT_CLOG_ARG1(f) \
405 fprintf(stderr,"%s:%d:\n" f, __FILE__, __LINE__)
406 # define _XBT_CLOG_ARGN(f, ...) \
407 fprintf(stderr,"%s:%d:\n" f, __FILE__, __LINE__, __VA_ARGS__)
408 # define XBT_LOG(...) XBT_CLOG(0, __VA_ARGS__)
410 # define XBT_CLOG_(catv, prio, ...) \
412 if (_XBT_LOG_ISENABLEDV(catv, prio)) { \
413 s_xbt_log_event_t _log_ev; \
414 _log_ev.cat = &(catv); \
415 _log_ev.priority = (prio); \
416 _log_ev.fileName = __FILE__; \
417 _log_ev.functionName = _XBT_FUNCTION; \
418 _log_ev.lineNum = __LINE__; \
419 _xbt_log_event_log(&_log_ev, __VA_ARGS__); \
422 # define XBT_CLOG(cat, prio, ...) XBT_CLOG_(_XBT_LOGV(cat), prio, __VA_ARGS__)
423 # define XBT_LOG(...) XBT_CLOG_((*_XBT_LOGV(default)), __VA_ARGS__)
428 * \param c the category on which to log
429 * \param ... the format string and its arguments
430 * @brief Log an event at the DEBUG priority on the specified category with these args.
432 #define XBT_CDEBUG(c, ...) XBT_CLOG(c, xbt_log_priority_debug, __VA_ARGS__)
436 * @brief Log an event at the VERB priority on the specified category with these args.
438 #define XBT_CVERB(c, ...) XBT_CLOG(c, xbt_log_priority_verbose, __VA_ARGS__)
442 * @brief Log an event at the INFO priority on the specified category with these args.
444 #define XBT_CINFO(c, ...) XBT_CLOG(c, xbt_log_priority_info, __VA_ARGS__)
448 * @brief Log an event at the WARN priority on the specified category with these args.
450 #define XBT_CWARN(c, ...) XBT_CLOG(c, xbt_log_priority_warning, __VA_ARGS__)
454 * @brief Log an event at the ERROR priority on the specified category with these args.
456 #define XBT_CERROR(c, ...) XBT_CLOG(c, xbt_log_priority_error, __VA_ARGS__)
460 * @brief Log an event at the CRITICAL priority on the specified category with these args (CCRITICALn exists for any n<10).
462 #define XBT_CCRITICAL(c, ...) XBT_CLOG(c, xbt_log_priority_critical, __VA_ARGS__)
466 * \param ... the format string and its arguments
467 * @brief Log an event at the DEBUG priority on the default category with these args.
469 #define XBT_DEBUG(...) XBT_LOG(xbt_log_priority_debug, __VA_ARGS__)
473 * @brief Log an event at the VERB priority on the default category with these args.
475 #define XBT_VERB(...) XBT_LOG(xbt_log_priority_verbose, __VA_ARGS__)
479 * @brief Log an event at the INFO priority on the default category with these args.
481 #define XBT_INFO(...) XBT_LOG(xbt_log_priority_info, __VA_ARGS__)
485 * @brief Log an event at the WARN priority on the default category with these args.
487 #define XBT_WARN(...) XBT_LOG(xbt_log_priority_warning, __VA_ARGS__)
491 * @brief Log an event at the ERROR priority on the default category with these args.
493 #define XBT_ERROR(...) XBT_LOG(xbt_log_priority_error, __VA_ARGS__)
497 * @brief Log an event at the CRITICAL priority on the default category with these args.
499 #define XBT_CRITICAL(...) XBT_LOG(xbt_log_priority_critical, __VA_ARGS__)
501 #define _XBT_IN_OUT(...) \
502 _XBT_IF_ONE_ARG(_XBT_IN_OUT_ARG1, _XBT_IN_OUT_ARGN, __VA_ARGS__)(__VA_ARGS__)
503 #define _XBT_IN_OUT_ARG1(fmt) \
504 XBT_LOG(xbt_log_priority_trace, fmt, _XBT_FUNCTION)
505 #define _XBT_IN_OUT_ARGN(fmt, ...) \
506 XBT_LOG(xbt_log_priority_trace, fmt, _XBT_FUNCTION, __VA_ARGS__)
510 * @brief Log at TRACE priority that we entered in current function, appending a user specified format.
512 #define XBT_IN(...) _XBT_IN_OUT(">> begin of %s" __VA_ARGS__)
516 * @brief Log at TRACE priority that we exited the current function, appending a user specified format.
518 #define XBT_OUT(...) _XBT_IN_OUT("<< end of %s" __VA_ARGS__)
522 * @brief Log at TRACE priority a message indicating that we reached that point, appending a user specified format.
524 #define XBT_HERE(...) XBT_LOG(xbt_log_priority_trace, "-- was here" __VA_ARGS__)
526 #ifdef XBT_USE_DEPRECATED
528 /* Kept for backward compatibility. */
530 #define CLOG0(...) XBT_CLOG(__VA_ARGS__)
531 #define CLOG1(...) XBT_CLOG(__VA_ARGS__)
532 #define CLOG2(...) XBT_CLOG(__VA_ARGS__)
533 #define CLOG3(...) XBT_CLOG(__VA_ARGS__)
534 #define CLOG4(...) XBT_CLOG(__VA_ARGS__)
535 #define CLOG5(...) XBT_CLOG(__VA_ARGS__)
536 #define CLOG6(...) XBT_CLOG(__VA_ARGS__)
537 #define CLOG7(...) XBT_CLOG(__VA_ARGS__)
538 #define CLOG8(...) XBT_CLOG(__VA_ARGS__)
539 #define CLOG9(...) XBT_CLOG(__VA_ARGS__)
540 #define CLOG10(...) XBT_CLOG(__VA_ARGS__)
542 #define CDEBUG0(...) XBT_CDEBUG(__VA_ARGS__)
543 #define CDEBUG1(...) XBT_CDEBUG(__VA_ARGS__)
544 #define CDEBUG2(...) XBT_CDEBUG(__VA_ARGS__)
545 #define CDEBUG3(...) XBT_CDEBUG(__VA_ARGS__)
546 #define CDEBUG4(...) XBT_CDEBUG(__VA_ARGS__)
547 #define CDEBUG5(...) XBT_CDEBUG(__VA_ARGS__)
548 #define CDEBUG6(...) XBT_CDEBUG(__VA_ARGS__)
549 #define CDEBUG7(...) XBT_CDEBUG(__VA_ARGS__)
550 #define CDEBUG8(...) XBT_CDEBUG(__VA_ARGS__)
551 #define CDEBUG9(...) XBT_CDEBUG(__VA_ARGS__)
552 #define CDEBUG10(...) XBT_CDEBUG(__VA_ARGS__)
554 #define CVERB0(...) XBT_CVERB(__VA_ARGS__)
555 #define CVERB1(...) XBT_CVERB(__VA_ARGS__)
556 #define CVERB2(...) XBT_CVERB(__VA_ARGS__)
557 #define CVERB3(...) XBT_CVERB(__VA_ARGS__)
558 #define CVERB4(...) XBT_CVERB(__VA_ARGS__)
559 #define CVERB5(...) XBT_CVERB(__VA_ARGS__)
560 #define CVERB6(...) XBT_CVERB(__VA_ARGS__)
561 #define CVERB7(...) XBT_CVERB(__VA_ARGS__)
562 #define CVERB8(...) XBT_CVERB(__VA_ARGS__)
563 #define CVERB9(...) XBT_CVERB(__VA_ARGS__)
564 #define CVERB10(...) XBT_CVERB(__VA_ARGS__)
566 #define CINFO0(...) XBT_CINFO(__VA_ARGS__)
567 #define CINFO1(...) XBT_CINFO(__VA_ARGS__)
568 #define CINFO2(...) XBT_CINFO(__VA_ARGS__)
569 #define CINFO3(...) XBT_CINFO(__VA_ARGS__)
570 #define CINFO4(...) XBT_CINFO(__VA_ARGS__)
571 #define CINFO5(...) XBT_CINFO(__VA_ARGS__)
572 #define CINFO6(...) XBT_CINFO(__VA_ARGS__)
573 #define CINFO7(...) XBT_CINFO(__VA_ARGS__)
574 #define CINFO8(...) XBT_CINFO(__VA_ARGS__)
575 #define CINFO9(...) XBT_CINFO(__VA_ARGS__)
576 #define CINFO10(...) XBT_CINFO(__VA_ARGS__)
578 #define CWARN0(...) XBT_CWARN(__VA_ARGS__)
579 #define CWARN1(...) XBT_CWARN(__VA_ARGS__)
580 #define CWARN2(...) XBT_CWARN(__VA_ARGS__)
581 #define CWARN3(...) XBT_CWARN(__VA_ARGS__)
582 #define CWARN4(...) XBT_CWARN(__VA_ARGS__)
583 #define CWARN5(...) XBT_CWARN(__VA_ARGS__)
584 #define CWARN6(...) XBT_CWARN(__VA_ARGS__)
585 #define CWARN7(...) XBT_CWARN(__VA_ARGS__)
586 #define CWARN8(...) XBT_CWARN(__VA_ARGS__)
587 #define CWARN9(...) XBT_CWARN(__VA_ARGS__)
588 #define CWARN10(...) XBT_CWARN(__VA_ARGS__)
590 #define CERROR0(...) XBT_CERROR(__VA_ARGS__)
591 #define CERROR1(...) XBT_CERROR(__VA_ARGS__)
592 #define CERROR2(...) XBT_CERROR(__VA_ARGS__)
593 #define CERROR3(...) XBT_CERROR(__VA_ARGS__)
594 #define CERROR4(...) XBT_CERROR(__VA_ARGS__)
595 #define CERROR5(...) XBT_CERROR(__VA_ARGS__)
596 #define CERROR6(...) XBT_CERROR(__VA_ARGS__)
597 #define CERROR7(...) XBT_CERROR(__VA_ARGS__)
598 #define CERROR8(...) XBT_CERROR(__VA_ARGS__)
599 #define CERROR9(...) XBT_CERROR(__VA_ARGS__)
600 #define CERROR10(...) XBT_CERROR(__VA_ARGS__)
602 #define CCRITICAL0(...) XBT_CCRITICAL(__VA_ARGS__)
603 #define CCRITICAL1(...) XBT_CCRITICAL(__VA_ARGS__)
604 #define CCRITICAL2(...) XBT_CCRITICAL(__VA_ARGS__)
605 #define CCRITICAL3(...) XBT_CCRITICAL(__VA_ARGS__)
606 #define CCRITICAL4(...) XBT_CCRITICAL(__VA_ARGS__)
607 #define CCRITICAL5(...) XBT_CCRITICAL(__VA_ARGS__)
608 #define CCRITICAL6(...) XBT_CCRITICAL(__VA_ARGS__)
609 #define CCRITICAL7(...) XBT_CCRITICAL(__VA_ARGS__)
610 #define CCRITICAL8(...) XBT_CCRITICAL(__VA_ARGS__)
611 #define CCRITICAL9(...) XBT_CCRITICAL(__VA_ARGS__)
612 #define CCRITICAL10(...) XBT_CCRITICAL(__VA_ARGS__)
614 #define LOG0(...) XBT_LOG(__VA_ARGS__)
615 #define LOG1(...) XBT_LOG(__VA_ARGS__)
616 #define LOG2(...) XBT_LOG(__VA_ARGS__)
617 #define LOG3(...) XBT_LOG(__VA_ARGS__)
618 #define LOG4(...) XBT_LOG(__VA_ARGS__)
619 #define LOG5(...) XBT_LOG(__VA_ARGS__)
620 #define LOG6(...) XBT_LOG(__VA_ARGS__)
621 #define LOG7(...) XBT_LOG(__VA_ARGS__)
622 #define LOG8(...) XBT_LOG(__VA_ARGS__)
623 #define LOG9(...) XBT_LOG(__VA_ARGS__)
624 #define LOG10(...) XBT_LOG(__VA_ARGS__)
626 #define DEBUG0(...) XBT_DEBUG(__VA_ARGS__)
627 #define DEBUG1(...) XBT_DEBUG(__VA_ARGS__)
628 #define DEBUG2(...) XBT_DEBUG(__VA_ARGS__)
629 #define DEBUG3(...) XBT_DEBUG(__VA_ARGS__)
630 #define DEBUG4(...) XBT_DEBUG(__VA_ARGS__)
631 #define DEBUG5(...) XBT_DEBUG(__VA_ARGS__)
632 #define DEBUG6(...) XBT_DEBUG(__VA_ARGS__)
633 #define DEBUG7(...) XBT_DEBUG(__VA_ARGS__)
634 #define DEBUG8(...) XBT_DEBUG(__VA_ARGS__)
635 #define DEBUG9(...) XBT_DEBUG(__VA_ARGS__)
636 #define DEBUG10(...) XBT_DEBUG(__VA_ARGS__)
638 #define VERB0(...) XBT_VERB(__VA_ARGS__)
639 #define VERB1(...) XBT_VERB(__VA_ARGS__)
640 #define VERB2(...) XBT_VERB(__VA_ARGS__)
641 #define VERB3(...) XBT_VERB(__VA_ARGS__)
642 #define VERB4(...) XBT_VERB(__VA_ARGS__)
643 #define VERB5(...) XBT_VERB(__VA_ARGS__)
644 #define VERB6(...) XBT_VERB(__VA_ARGS__)
645 #define VERB7(...) XBT_VERB(__VA_ARGS__)
646 #define VERB8(...) XBT_VERB(__VA_ARGS__)
647 #define VERB9(...) XBT_VERB(__VA_ARGS__)
648 #define VERB10(...) XBT_VERB(__VA_ARGS__)
650 #define INFO0(...) XBT_INFO(__VA_ARGS__)
651 #define INFO1(...) XBT_INFO(__VA_ARGS__)
652 #define INFO2(...) XBT_INFO(__VA_ARGS__)
653 #define INFO3(...) XBT_INFO(__VA_ARGS__)
654 #define INFO4(...) XBT_INFO(__VA_ARGS__)
655 #define INFO5(...) XBT_INFO(__VA_ARGS__)
656 #define INFO6(...) XBT_INFO(__VA_ARGS__)
657 #define INFO7(...) XBT_INFO(__VA_ARGS__)
658 #define INFO8(...) XBT_INFO(__VA_ARGS__)
659 #define INFO9(...) XBT_INFO(__VA_ARGS__)
660 #define INFO10(...) XBT_INFO(__VA_ARGS__)
662 #define WARN0(...) XBT_WARN(__VA_ARGS__)
663 #define WARN1(...) XBT_WARN(__VA_ARGS__)
664 #define WARN2(...) XBT_WARN(__VA_ARGS__)
665 #define WARN3(...) XBT_WARN(__VA_ARGS__)
666 #define WARN4(...) XBT_WARN(__VA_ARGS__)
667 #define WARN5(...) XBT_WARN(__VA_ARGS__)
668 #define WARN6(...) XBT_WARN(__VA_ARGS__)
669 #define WARN7(...) XBT_WARN(__VA_ARGS__)
670 #define WARN8(...) XBT_WARN(__VA_ARGS__)
671 #define WARN9(...) XBT_WARN(__VA_ARGS__)
672 #define WARN10(...) XBT_WARN(__VA_ARGS__)
674 #define ERROR0(...) XBT_ERROR(__VA_ARGS__)
675 #define ERROR1(...) XBT_ERROR(__VA_ARGS__)
676 #define ERROR2(...) XBT_ERROR(__VA_ARGS__)
677 #define ERROR3(...) XBT_ERROR(__VA_ARGS__)
678 #define ERROR4(...) XBT_ERROR(__VA_ARGS__)
679 #define ERROR5(...) XBT_ERROR(__VA_ARGS__)
680 #define ERROR6(...) XBT_ERROR(__VA_ARGS__)
681 #define ERROR7(...) XBT_ERROR(__VA_ARGS__)
682 #define ERROR8(...) XBT_ERROR(__VA_ARGS__)
683 #define ERROR9(...) XBT_ERROR(__VA_ARGS__)
684 #define ERROR10(...) XBT_ERROR(__VA_ARGS__)
686 #define CRITICAL0(...) XBT_CRITICAL(__VA_ARGS__)
687 #define CRITICAL1(...) XBT_CRITICAL(__VA_ARGS__)
688 #define CRITICAL2(...) XBT_CRITICAL(__VA_ARGS__)
689 #define CRITICAL3(...) XBT_CRITICAL(__VA_ARGS__)
690 #define CRITICAL4(...) XBT_CRITICAL(__VA_ARGS__)
691 #define CRITICAL5(...) XBT_CRITICAL(__VA_ARGS__)
692 #define CRITICAL6(...) XBT_CRITICAL(__VA_ARGS__)
693 #define CRITICAL7(...) XBT_CRITICAL(__VA_ARGS__)
694 #define CRITICAL8(...) XBT_CRITICAL(__VA_ARGS__)
695 #define CRITICAL9(...) XBT_CRITICAL(__VA_ARGS__)
696 #define CRITICAL10(...) XBT_CRITICAL(__VA_ARGS__)
698 #define XBT_IN1(...) XBT_IN(__VA_ARGS__);
699 #define XBT_IN2(...) XBT_IN(__VA_ARGS__);
700 #define XBT_IN3(...) XBT_IN(__VA_ARGS__);
701 #define XBT_IN4(...) XBT_IN(__VA_ARGS__);
702 #define XBT_IN5(...) XBT_IN(__VA_ARGS__);
703 #define XBT_IN6(...) XBT_IN(__VA_ARGS__);
708 #endif /* ! _XBT_LOG_H_ */