Fix: add LTTngEvent class to fix delayed logger
authorDavid Goulet <dgoulet@efficios.com>
Fri, 7 Feb 2014 20:09:12 +0000 (15:09 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 7 Feb 2014 20:45:39 +0000 (15:45 -0500)
commit5b5ffa03ce2a490ddf34d3715c21c7b633567b9a
tree35ce7fd83ee308d55524a0091b857b396aa7eab4
parentb24e4e91830659fca70cfd4381280b828bf8d360
Fix: add LTTngEvent class to fix delayed logger

This commit introduces a new object called LTTngEvent that represent a
LTTng event containing some attributes, for now loglevel data.

Instead of moving event string name around, this object is created once
and kept in the log handler so once a record is publish we can match
attributes such as loglevels.

This has to be done in order to fix the issue where we have a Logger
that appears later on during runtime (with the timer that poll every 5
seconds). With a created event object we can lookup back the event
attributes and enabled it accordingly. Same goes with the * (all events)
where we now keep the loglevel values process wide so we can force the
new events to use it.

Signed-off-by: David Goulet <dgoulet@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust-jul/Makefile.am
liblttng-ust-jul/org/lttng/ust/jul/LTTngEvent.java [new file with mode: 0644]
liblttng-ust-jul/org/lttng/ust/jul/LTTngLogHandler.java
liblttng-ust-jul/org/lttng/ust/jul/LTTngSessiondCmd2_4.java
liblttng-ust-jul/org/lttng/ust/jul/LTTngTCPSessiondClient.java
This page took 0.024687 seconds and 4 git commands to generate.