package eu.cassandra.server;

import java.io.File;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class IServletContextListener implements ServletContextListener {
	
	public static File schemas;

	@Override
	public void contextDestroyed(ServletContextEvent arg0) {
		// TODO Auto-generated method stub

	}

	@Override
	public void contextInitialized(ServletContextEvent arg0) {
		String path = arg0.getServletContext().getRealPath("resources/jsonSchema/");
		schemas = new File(path);
	}

}

@@ -133,16 +133,169 @@
 tener;%0A%0A
+import org.apache.log4j.DailyRollingFileAppender;%0Aimport org.apache.log4j.Level;%0Aimport org.apache.log4j.Logger;%0Aimport org.apache.log4j.PatternLayout;%0A%0A
 public c
@@ -680,14 +680,481 @@
 (path);%0A
+%09%09Logger.getRootLogger().getLoggerRepository().resetConfiguration();%0A%09%09DailyRollingFileAppender drfa = new DailyRollingFileAppender();%0A%09%09drfa.setName(%22R%22);%0A%09%09drfa.setFile(%22/home/kyrcha/cassandra/logs/cassandra.log%22);%0A%09%09drfa.setLayout(new PatternLayout(%22%25d%7BMM/dd HH:mm:ss%7D %25-5p %2530.30c %25x - %25m%5Cn%22));%0A%09%09drfa.setDatePattern(%22'.'yyyy-MM-dd%22);%0A%09%09drfa.setThreshold(Level.TRACE);%0A%09%09drfa.setAppend(true);%0A%09%09drfa.activateOptions();%0A%09%09Logger.getRootLogger().addAppender(drfa);%0A
 %09%7D%0A%0A%7D%0A

Add logger programmatically