tags:

views:

25

answers:

1

I have an application that uses Commons Logging for logging. It's built with Maven, and uses TestNG for testing. I'm trying to fine-tune the logging level during tests, but not having any luck - everything is set to INFO, no matter what I do. I tried creating a logging.properties file on the classpath, and it does absolutely nothing. I also created a log4testng.properties file - this one is being read (I know this because TestNG showed an error after I deliberately introduced a syntax error into it) but the settings in it have no effect.

Any suggestions?


EDIT: well, I haven't figured out the underlying problem (why java.util.logging is ignoring my attempts to configure it) but I was able to get what I want by making Log4j available during tests, then configuring that. I'm closing this question, because I really don't care at this point.

A: 
Cedric Beust
I think you misunderstood. I don't care about TestNG's log output; I care about my application's output.
Mike Baranczak