diff --git a/java/src/ch/ntb/usb/logger/LogUtil.java b/java/src/ch/ntb/usb/logger/LogUtil.java index 991c3cd..fd10a20 100644 --- a/java/src/ch/ntb/usb/logger/LogUtil.java +++ b/java/src/ch/ntb/usb/logger/LogUtil.java @@ -6,11 +6,12 @@ import java.util.logging.Level; public class LogUtil { - public static UsbLogger ch_ntb_usb; + public static UsbLogger ch_ntb_usb, ch_ntb_usb_test; static { // set all loglevels here ch_ntb_usb = getLogger("ch.ntb.usb", LogLevel.OFF); + ch_ntb_usb_test = getLogger("ch.ntb.usb.test", LogLevel.ALL); } public static void setLevel(UsbLogger logger, Level loglevel) { diff --git a/java/src/ch/ntb/usb/test/TestImplementation.java b/java/src/ch/ntb/usb/test/TestImplementation.java index 36f261b..f724d4d 100644 --- a/java/src/ch/ntb/usb/test/TestImplementation.java +++ b/java/src/ch/ntb/usb/test/TestImplementation.java @@ -7,10 +7,11 @@ import ch.ntb.usb.Device; import ch.ntb.usb.USB; import ch.ntb.usb.USBException; import ch.ntb.usb.Usb_Bus; +import ch.ntb.usb.logger.LogUtil; public class TestImplementation { - private static Logger logger = Logger.getLogger("ch.ntb.usb.test"); + private static Logger logger = LogUtil.ch_ntb_usb_test; static Usb_Bus bus;