Log a message with info log level.
107108109110111112113114115116117
{ PortalContainer.getInstance(); Log log = ExoLogger.getLogger(TestLoggers.class); log.info("Log4j Container Tests"); log.info("Log4j Container {}", "Tests"); log.info("Log4j Conta{} Te{}", "iner", "sts"); log.info("Log4j Container Tests", 1, 2, 3); logOut(log);
108109110111112113114115116117118
PortalContainer.getInstance(); Log log = ExoLogger.getLogger(TestLoggers.class); log.info("Log4j Container Tests"); log.info("Log4j Container {}", "Tests"); log.info("Log4j Conta{} Te{}", "iner", "sts"); log.info("Log4j Container Tests", 1, 2, 3); logOut(log); }
109110111112113114115116117118119
110111112113114115116117118119120
Log log = ExoLogger.getLogger(TestLoggers.class); log.info("Log4j Container Tests"); log.info("Log4j Container {}", "Tests"); log.info("Log4j Conta{} Te{}", "iner", "sts"); log.info("Log4j Container Tests", 1, 2, 3); logOut(log); } /**
137138139140141142143144145146147
props.put("java.util.logging.FileHandler.formatter", "java.util.logging.SimpleFormatter"); new LogConfigurationInitializer(logger, confClass, props); Log log = ExoLogger.getLogger(TestLoggers.class); log.info("JCL Tests"); logOut(log); } /**
155156157158159160161162163164165
{ PortalContainer.getInstance(); Log log = ExoLogger.getLogger(TestLoggers.class); log.info("JCL Container Tests"); logOut(log); } private void logOut(Log log)
244245246247248249250251252253254
} public void testMultiThread() throws Exception { Log log = ExoLogger.getLogger("exo.jcr.framework.command.MultiThreadFtpTest"); log.info("Test..."); ArrayList<FtpThreadTest> testers = new ArrayList<FtpThreadTest>(); for (int i = 0; i < CLIENTS_COUNT; i++) {
277278279280281282283284285286287
Thread.sleep(100); } } catch (Exception exc) { log.info("Unhandled ecxeption. " + exc.getMessage(), exc); } log.info("Complete."); }
280281282283284285286287288
catch (Exception exc) { log.info("Unhandled ecxeption. " + exc.getMessage(), exc); } log.info("Complete."); } }
6566676869707172737475
} public void testNOOP() throws Exception { Log log = getLogger(FtpConst.Commands.CMD_NOOP); log.info("Test..."); FtpClientSession client = FtpTestConfig.getTestFtpClient(); client.connect(); assertEquals(FtpConst.Replyes.REPLY_200, client.executeCommand(new CmdNoop()));