tags:

views:

453

answers:

1

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?

A: 

This post might also help you:

"Integrate commons-logging output with testNG test case reports"

Adrian
Well, yeah, it helps in writing something myself, but I was looking for a readymade plugin or something. Still useful, though.
Hanno Fietz