log4j place holder

  System.setProperty("aaa", "customLog");
  PropertyConfigurator.configure(MyApp.class.getClassLoader()
				.getResourceAsStream("ss_log4j.properties"));


  log4j.appender.A2.File=log/${aaa}_log.txt

你可能感兴趣的:(log4j)