public static boolean configure(String content) { // System.err.println("log4j content:" + content); ByteArrayResource resource2 = new ByteArrayResource(content.getBytes(), "log4j.properties"); try { InputStream input = resource2.getInputStream(); configure(input); input.close(); } catch (IOException e) { throw new RuntimeException(e.getMessage(), e); } LogConfigLeiImpl.content = content; return true; }