Is there any easy way of overriding log levels (in my case log4j) when running a test from Eclipse JUnit plugin?
Asked
Active
Viewed 1,982 times
1
-
See also http://stackoverflow.com/questions/24231773/specifying-a-custom-log4j-properties-file-for-all-of-junit-tests-run-from-eclips – Raedwald Jul 13 '16 at 12:18
1 Answers
1
Configure a log4j.xml
configuration file that fits your needs and put the directory with that file to your run configuration classpath - or use an other possibility to activate this configuration as described here.

FrVaBe
- 47,963
- 16
- 124
- 157
-
Thanks, I guessed this was the case but was hoping for a more integrated way in the JUnit runner plugin. Thing is that I have to add this to all run configurations that are auto-created when I quick-run the tests. Was hoping for maybe a way to say: "Add this option to the run configuration when it is created for a test-run" – Viktor Hedefalk Mar 02 '12 at 23:06