I am debugging some jUnit tests that use the Camel TestSupport interface. This gives me access to a log4j log but I can't seem to figure out how to get a reconfigured version of that. I want to be able to change the log level since a lot of my logs are written in a trace level instead of just info or debug.
What is the best way to reconfigure this log's console output?
Thanks
You need to include a log4j.xml or log4j.properties on your classpath that you're using the test.
If you're using maven, this is easy, just put it in src/test/resources
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.