X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=src%2Flib%2Flogging.h;h=f4890ce34f0a07c3211b1e0445e14e7d743c8e8a;hb=5cf4fb3d26a1b3567c3dcb33f11584c90c02101a;hp=2598b473d93b8b2fe2fc1c4cd24e170a08c7612d;hpb=e9d0e8218b63860b79a1fe0182da40b3146dc217;p=babeltrace.git diff --git a/src/lib/logging.h b/src/lib/logging.h index 2598b473..f4890ce3 100644 --- a/src/lib/logging.h +++ b/src/lib/logging.h @@ -34,6 +34,8 @@ #include "logging/log.h" +#define BT_LIB_LOG_LIBBABELTRACE2_NAME "libbabeltrace2" + extern int bt_lib_log_level; @@ -62,6 +64,11 @@ int bt_lib_log_level; * * Use one of the BT_LIB_LOG*() macros above instead of calling this * function directly. + * + * This function would normally be BT_HIDDEN, but it is used by the Python + * plugin provider, which is conceptually part of libbabeltrace2, but + * implemented as a separate shared object, for modularity. It is therefore + * exposed, but not part of the public ABI. */ void bt_lib_log(const char *func, const char *file, unsigned line, int lvl, const char *tag, const char *fmt, ...); @@ -91,6 +98,11 @@ void bt_lib_log(const char *func, const char *file, unsigned line, * * Use one of the BT_LIB_LOG*_APPEND_CAUSE() macros above instead of * calling this function directly. + * + * This function would normally be BT_HIDDEN, but it is used by the Python + * plugin provider, which is conceptually part of libbabeltrace2, but + * implemented as a separate shared object, for modularity. It is therefore + * exposed, but not part of the ABI. */ void bt_lib_maybe_log_and_append_cause(const char *func, const char *file, unsigned line, int lvl, const char *tag,