add log4j.xml and implement prf