*/
/* Protection: this file uses BT_LIB_LOG*() macros directly */
-#ifndef BABELTRACE_LIB_LOGGING_INTERNAL_H
-# error Please include <lib/lib-logging.h> before including this file.
+#ifndef BT_LIB_LOG_SUPPORTED
+# error Please include "lib/logging.h" before including this file.
#endif
#include "lib/assert-pre.h"
BT_ASSERT(event_class);
event = bt_object_pool_create_object(&event_class->event_pool);
if (G_UNLIKELY(!event)) {
- BT_LIB_LOGE("Cannot allocate one event from event class's event pool: "
+ BT_LIB_LOGE_APPEND_CAUSE(
+ "Cannot allocate one event from event class's event pool: "
"%![ec-]+E", event_class);
goto end;
}