disabling logging to console with maven plugin

997 views
Skip to first unread message

Woody Folsom

unread,
Dec 2, 2005, 10:45:28 AM12/2/05
to testng...@googlegroups.com
I have a project set to perform only WARN and FATAL log4j logging to the console when I run maven test (using the junit plugin). My tests also execute successfully using the maven testng plugin.

However - I also see additional INFO level console output which should be disabled. Does the maven testng plugin somehow add a console appender to the root logger? If so how do I disable this feature?

---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=10388&messageID=21898#21898

Woody Folsom

unread,
Dec 2, 2005, 11:48:47 AM12/2/05
to testng...@googlegroups.com
Update to my original question - it seems that maven testng is not reading the log4j.configuration sysproperty, or I am not setting it correctly.

maven test -- reads from properties/log4j.properties, without any special settings

maven testng -- does not. running maven -Dlog4j.configuration=properties/log4j.properties testng also does not work

Does anyone know how to set the location of the log4j properties file for use by the maven testng plugin? If I run the test directly without using maven it seems to initialize logging correctly.

---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=10388&messageID=21904#21904

Reply all
Reply to author
Forward
0 new messages