+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>>";
+ }
+}
+