Add log4j.properties and save logs to a file