+
+ /*
+ * HACK: Set the channel's subdomain (JUL, Log4j, Python, etc.)
+ * based on the default name.
+ */
+ if (!strcmp(uchan->name, DEFAULT_JUL_CHANNEL_NAME)) {
+ uchan->domain = LTTNG_DOMAIN_JUL;
+ } else if (!strcmp(uchan->name, DEFAULT_LOG4J_CHANNEL_NAME)) {
+ uchan->domain = LTTNG_DOMAIN_LOG4J;
+ } else if (!strcmp(uchan->name, DEFAULT_PYTHON_CHANNEL_NAME)) {
+ uchan->domain = LTTNG_DOMAIN_PYTHON;
+ }
+