import org.lttng.ust.agent.utils.LttngSession.Domain;
import org.lttng.ust.agent.utils.MiscTestUtils;
+/**
+ * Log4j tests for multiple concurrent tracing sessions
+ */
public class Log4jMultiSessionTest extends MultiSessionTestBase {
private static final Domain DOMAIN = Domain.LOG4J;
private Logger loggerC;
private Logger loggerD;
+ /**
+ * Class setup
+ */
@BeforeClass
public static void log4jClassSetup() {
/* Skip tests if we can't find the JNI library or lttng-tools */
LttngSession.destroyAllSessions();
}
+ /**
+ * Class teardown
+ */
@AfterClass
public static void log4jClassCleanup() {
LttngSession.deleteAllTracee();
}
+ /**
+ * Test setup
+ *
+ * @throws SecurityException
+ * @throws IOException
+ */
@Before
public void log4jSetup() throws SecurityException, IOException {
// TODO Wipe all existing LTTng sessions?
loggerD.addAppender((Appender) handlerD);
}
+ /**
+ * Test teardown
+ */
@After
public void log4jTeardown() {
loggerA.removeAppender((Appender) handlerA);