Feature #894
openCannot enable channel for JUL (-j) or Log4j (-l) domains
0%
Description
The lttng enable-event
command allows -j
or -l
flags, to enable events for the JUL and Log4j domains respectively. However, the lttng enable-channel
command does not allow these flags. Interestingly, the "missing domain" error message mentions the -j
flag, but it does not actually work:
$ lttng enable-channel MyChannel
Error: Please specify a domain (-k/-u/-j).
Error: Command error
$ lttng enable-channel MyChannel -j
usage: lttng enable-channel NAME[,NAME2,...] (-u | -k) [OPTIONS]
...
Updated by Jérémie Galarneau about 9 years ago
- Status changed from New to Confirmed
- Target version set to 2.6
The explicit creation of "agent" channels is unsupported. All agent events are assumed to be part of each agent-domain's default channel, which is created when an event in that domain is enabled for the first time. Therefore, enable-channel's documentation should not mention them.
Updated by Jérémie Galarneau about 9 years ago
- Tracker changed from Bug to Feature
- Target version changed from 2.6 to Wishlist
Updated by Anonymous about 9 years ago
Something I forgot to mention in the original report, this means that we have to enable at least one event before we can start tracing in the "agent channels". Whereas with -u we can do:
lttng create lttng enable-channel -u mychannel lttng start
and enable events later on.