- logger added for ch.ntb.usb.test
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@153 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
This commit is contained in:
@@ -6,11 +6,12 @@ import java.util.logging.Level;
|
|||||||
|
|
||||||
public class LogUtil {
|
public class LogUtil {
|
||||||
|
|
||||||
public static UsbLogger ch_ntb_usb;
|
public static UsbLogger ch_ntb_usb, ch_ntb_usb_test;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
// set all loglevels here
|
// set all loglevels here
|
||||||
ch_ntb_usb = getLogger("ch.ntb.usb", LogLevel.OFF);
|
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) {
|
public static void setLevel(UsbLogger logger, Level loglevel) {
|
||||||
|
|||||||
@@ -7,10 +7,11 @@ import ch.ntb.usb.Device;
|
|||||||
import ch.ntb.usb.USB;
|
import ch.ntb.usb.USB;
|
||||||
import ch.ntb.usb.USBException;
|
import ch.ntb.usb.USBException;
|
||||||
import ch.ntb.usb.Usb_Bus;
|
import ch.ntb.usb.Usb_Bus;
|
||||||
|
import ch.ntb.usb.logger.LogUtil;
|
||||||
|
|
||||||
public class TestImplementation {
|
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;
|
static Usb_Bus bus;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user