java - Log4j file appender for each instance of a class -
i have scenario class, has list of test cases. there way can save each test case execution separate file name: testcasename.log
?
i have done before java.util.logging
adding file handler in code, have no idea how log4j.
you can configuring separate org.apache.log4j.rollingfileappender
each test case class. can check link http://logging.apache.org/log4j/2.x/manual/configuration.html configuring this.
Comments
Post a Comment