I am working on selenium automation for one of the project, I have a number of test cases I want to create a separate log file for each and every test case **Example :** Suppose I have two test cases with names X and Y, when I execute all the test cases (X and Y), then I need to create folder (in parallel to execution) with current time stamp and inside that folder I need to create two log files with name same as the test case names (i.e. X and Y) please help if any body having idea Note : I am using Log4j framework with java language.