Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
#if defined(BT_LOG_OUTPUT_LEVEL)
#define _BT_LOG_OUTPUT_LEVEL BT_LOG_OUTPUT_LEVEL
#else
#if defined(BT_LOG_OUTPUT_LEVEL)
#define _BT_LOG_OUTPUT_LEVEL BT_LOG_OUTPUT_LEVEL
#else
- #define _BT_LOG_OUTPUT_LEVEL _bt_log_global_output_lvl
+ /*
+ * We disallow this to make sure Babeltrace modules always
+ * have their own local log level.
+ */
+ #error No log level symbol specified: please define BT_LOG_OUTPUT_LEVEL before including this header.
#endif
/* "Tag" is a compound string that could be associated with a log message. It
#endif
/* "Tag" is a compound string that could be associated with a log message. It
#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
+
+#define BT_LOG_OUTPUT_LEVEL dummy
+
#include <babeltrace/logging-internal.h>
#include <babeltrace/logging.h>
#include <babeltrace/logging-internal.h>
#include <babeltrace/logging.h>