Logging: require modules to define BT_LOG_OUTPUT_LEVEL
[babeltrace.git] / include / babeltrace / logging-internal.h
index e9ce365e19281f8b478960f760b9ccbe68b505b1..8805306e9424228a052dbc0a8b44f8c094264559 100644 (file)
 #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
This page took 0.024496 seconds and 4 git commands to generate.