-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) {
- case -1:
- return "";
- case LTTNG_LOGLEVEL_EMERG:
- return "TRACE_EMERG";
- case LTTNG_LOGLEVEL_ALERT:
- return "TRACE_ALERT";
- case LTTNG_LOGLEVEL_CRIT:
- return "TRACE_CRIT";
- case LTTNG_LOGLEVEL_ERR:
- return "TRACE_ERR";
- case LTTNG_LOGLEVEL_WARNING:
- return "TRACE_WARNING";
- case LTTNG_LOGLEVEL_NOTICE:
- return "TRACE_NOTICE";
- case LTTNG_LOGLEVEL_INFO:
- return "TRACE_INFO";
- case LTTNG_LOGLEVEL_DEBUG_SYSTEM:
- return "TRACE_DEBUG_SYSTEM";
- case LTTNG_LOGLEVEL_DEBUG_PROGRAM:
- return "TRACE_DEBUG_PROGRAM";
- case LTTNG_LOGLEVEL_DEBUG_PROCESS:
- return "TRACE_DEBUG_PROCESS";
- case LTTNG_LOGLEVEL_DEBUG_MODULE:
- return "TRACE_DEBUG_MODULE";
- case LTTNG_LOGLEVEL_DEBUG_UNIT:
- return "TRACE_DEBUG_UNIT";
- case LTTNG_LOGLEVEL_DEBUG_FUNCTION:
- return "TRACE_DEBUG_FUNCTION";
- case LTTNG_LOGLEVEL_DEBUG_LINE:
- return "TRACE_DEBUG_LINE";
- case LTTNG_LOGLEVEL_DEBUG:
- return "TRACE_DEBUG";
- default:
- return "<<UNKNOWN>>";
- }
-}
-