add log4j integration, add event listerner