strncpy(tmp_events[i].name, event->name, sizeof(tmp_events[i].name));
tmp_events[i].name[sizeof(tmp_events[i].name) - 1] = '\0';
tmp_events[i].enabled = event->enabled;
+ tmp_events[i].loglevel = event->loglevel;
+ tmp_events[i].loglevel_type = event->loglevel_type;
i++;
}
rcu_read_unlock();
}
}
+static const char *loglevel_jul_string(int value)
+{
+ switch (value) {
+ case -1:
+ return "";
+ case LTTNG_LOGLEVEL_JUL_OFF:
+ return "JUL_OFF";
+ case LTTNG_LOGLEVEL_JUL_SEVERE:
+ return "JUL_SEVERE";
+ case LTTNG_LOGLEVEL_JUL_WARNING:
+ return "JUL_WARNING";
+ case LTTNG_LOGLEVEL_JUL_INFO:
+ return "JUL_INFO";
+ case LTTNG_LOGLEVEL_JUL_CONFIG:
+ return "JUL_CONFIG";
+ case LTTNG_LOGLEVEL_JUL_FINE:
+ return "JUL_FINE";
+ case LTTNG_LOGLEVEL_JUL_FINER:
+ return "JUL_FINER";
+ case LTTNG_LOGLEVEL_JUL_FINEST:
+ return "JUL_FINEST";
+ case LTTNG_LOGLEVEL_JUL_ALL:
+ return "JUL_ALL";
+ default:
+ return "<<UNKNOWN>>";
+ }
+}
+
static const char *loglevel_string(int value)
{
switch (value) {
}
for (i = 0; i < count; i++) {
- MSG("%s- %s%s", indent4, events[i].name,
- enabled_string(events[i].enabled));
+ MSG("%s- %s%s (loglevel%s %s)", indent4, events[i].name,
+ enabled_string(events[i].enabled),
+ logleveltype_string(events[i].loglevel_type),
+ loglevel_jul_string(events[i].loglevel));
}
MSG("");