# Revision history [back]

### How can I change the log level of a bundle when running a JUnit test under Eclipse?

In order to debug a test, I would like to be able to see TRACE or DEBUG log messages of a particular bundle. This is easily done from the OSGi console when running the controller normally (not tests) by using

setLogLevel org.opendaylight.bundlename TRACE


How can achieve the same effect from Eclipse, when running a JUnit test, or even when running tests with Maven from the console?