lib: rename `lib-logging.h` to `logging.h`
[babeltrace.git] / src / lib / lib-logging.c
index d6d75e05e5b20a7413d5683806b1c24d72094366..60ed8b6b82bafc2d6522537da4d6cd2dad470ddf 100644 (file)
  * SOFTWARE.
  */
 
-#define BT_LOG_TAG "LIB-LOGGING"
+/*
+ * This is just to satisfy the preprocessor check in "lib/logging.h":
+ * this file does not log anything.
+ */
+#define BT_LOG_TAG ""
 
 #include <stdarg.h>
 #include <stdio.h>
@@ -55,7 +59,7 @@
 #include "graph/message/stream-activity.h"
 #include "graph/message/stream.h"
 #include "graph/port.h"
-#include "lib-logging.h"
+#include "logging.h"
 #include "plugin/plugin.h"
 #include "plugin/plugin-so.h"
 #include "trace-ir/clock-class.h"
@@ -1051,8 +1055,9 @@ static inline void format_component(char **buf_ch, bool extended,
 {
        char tmp_prefix[TMP_PREFIX_LEN];
 
-       BUF_APPEND(", %sname=\"%s\"",
-               PRFIELD_GSTRING(component->name));
+       BUF_APPEND(", %sname=\"%s\", %slog-level=%s",
+               PRFIELD_GSTRING(component->name),
+               PRFIELD(bt_common_logging_level_string(component->log_level)));
 
        if (component->class) {
                SET_TMP_PREFIX("class-");
This page took 0.024273 seconds and 4 git commands to generate.