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

Popular posts from this blog

javascript - How to name a jQuery function to make a browser's back button work? -

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -