File logs = new File(tmp, "logs");
assertTrue(logs.mkdirs());
FileUtils.copyURLToFile(getClass().getResource("logging.xml"), new File(tmp, "logging.xml"));
MockServletContext context = new MockServletContext();
context.setInitParameter("GEOSERVER_DATA_DIR", tmp.getPath());
context.setInitParameter("GEOSERVER_LOG_LOCATION", new File(tmp, "foo.log").getAbsolutePath());
Logger logger = Logger.getRootLogger();
assertNull("Expected geoserverlogfile to be null. But was: "+logger.getAppender("geoserverlogfile"), logger.getAppender("geoserverlogfile"));
String rel = System.getProperty(LoggingUtils.RELINQUISH_LOG4J_CONTROL);