added log4j.properties and example code to use log4j