fix bugs of message engine,use log4j