This code demonstrates apace log4j. A separate log file for each thread is created so that the logs are easy to read