Fix: Include child loggers in the output of "lttng list"
authorAlexandre Montplaisir <alexmonthy@efficios.com>
Thu, 2 Jun 2016 07:29:48 +0000 (03:29 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 2 Jun 2016 13:21:34 +0000 (15:21 +0200)
commit6364bf2d71babde45ff6bacafca68218801e7d5b
treeca00e64d7e3b2a979365a3471e2115cfdf2ee7df
parentc6a5845760ee02e99e5d0609f47706036e257d7f
Fix: Include child loggers in the output of "lttng list"

The case where a parent logger has an handler attached but the
tracepoint comes from a child logger is not correctly handled
by the "lttng list -j/-l" command.

For example, if the logger "org.myapp" has a LTTng handler
attached, its child logger "org.myapp.mycomponent" would be
absent from the lttng list output even if it exists.

When checking for events to list, search through the parent
tree of each logger to find a potential LTTng handler.

This should also fix the problem of "lttng list" always
returning empty when the deprecated, but still supported,
LTTngAgent API was used, since that one attaches only one
handler to the root logger.

Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust-java-agent/java/lttng-ust-agent-jul/org/lttng/ust/agent/jul/LttngJulAgent.java
liblttng-ust-java-agent/java/lttng-ust-agent-log4j/org/lttng/ust/agent/log4j/LttngLog4jAgent.java
This page took 0.029004 seconds and 4 git commands to generate.