summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
3707dfc)
Remove unused imports.
Add missing dispose() in the log4j example.
Fix typos.
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
-import java.io.IOException;
-import java.util.logging.Level;
import java.util.logging.Logger;
/*
import java.util.logging.Logger;
/*
Logger helloLog = Logger.getLogger("hello");
/*
Logger helloLog = Logger.getLogger("hello");
/*
- * Get the LTTngAgent singelton reference. This will also initialize
+ * Get the LTTngAgent singleton reference. This will also initialize
* the Agent and make it register to the session daemon if available.
* When this returns, the Agent is registered and fully ready. If no
* session daemon is found, it will return and retry every 3 seconds in
* the background. TCP is used for communication.
*
* the Agent and make it register to the session daemon if available.
* When this returns, the Agent is registered and fully ready. If no
* session daemon is found, it will return and retry every 3 seconds in
* the background. TCP is used for communication.
*
- * Note that the LTTngAgent once registered is a seperate thread in
+ * Note that the LTTngAgent once registered is a separate thread in
* your Java application.
*/
lttngAgent = LTTngAgent.getLTTngAgent();
* your Java application.
*/
lttngAgent = LTTngAgent.getLTTngAgent();
/*
* Again, this is highly recommended so the session daemon socket gets
/*
* Again, this is highly recommended so the session daemon socket gets
- * cleaned up explicitely but it is not mandatory to do this step.
+ * cleaned up explicitly but it is not mandatory to do this step.
*/
lttngAgent.dispose();
}
*/
lttngAgent.dispose();
}
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
-import java.io.IOException;
-import org.apache.log4j.Logger;
import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.BasicConfigurator;
+import org.apache.log4j.Logger;
import org.lttng.ust.agent.LTTngAgent;
public class Hello
import org.lttng.ust.agent.LTTngAgent;
public class Hello
System.out.println("Firing hello delay in 5 seconds...");
Thread.sleep(5000);
helloLog.info("Hello World delayed...");
System.out.println("Firing hello delay in 5 seconds...");
Thread.sleep(5000);
helloLog.info("Hello World delayed...");
+
+ lttngAgent.dispose();