}
public void _testLog4j() throws Exception
{
Log log = ExoLogger.getLogger(TestLoggers.class);
String confClass = "org.exoplatform.services.log.impl.Log4JConfigurator";
Properties props = new Properties();
props.put("log4j.rootLogger", "DEBUG, stdout, file");
props.put("log4j.appender.stdout", "org.apache.log4j.ConsoleAppender");
props.put("log4j.appender.stdout.threshold", "DEBUG");
props.put("log4j.appender.stdout.layout", "org.apache.log4j.PatternLayout");
props.put("log4j.appender.stdout.layout.ConversionPattern",
"%d{dd.MM.yyyy HH:mm:ss} *%-5p* [%t] %c{1}: %m (%F, line %L) %n");
props.put("log4j.appender.file", "org.apache.log4j.FileAppender");
props.put("log4j.appender.file.File", "target/l4j_info.log");
props.put("log4j.appender.file.layout", "org.apache.log4j.PatternLayout");
props.put("log4j.appender.file.layout.ConversionPattern",
"%d{dd.MM.yyyy HH:mm:ss} *%-5p* [%t] %c{1}: %m (%F, line %L) %n");
LogConfigurationInitializer initializer = new LogConfigurationInitializer(logger, confClass, props);
log.info("LOG4J Tests");
logOut(log);
initializer.setProperty("log4j.rootLogger", "INFO, stdout, file");
initializer.setProperty("log4j.appender.file.File", "target/l4j_debg.log");