I use log4j and would like log messages that normally end up in my logging facility to appear in the test reports created by TestNG during my unit tests.
I think that would mean a log4j Appender
which outputs to a TestNG Listener
and an appropriate log4j config in the src/test/resources directory of my Maven project. Is that correct?
It seems fairly easy to write, but is there something I just can pull in via Maven?