add a logger system,use log4j lib