- Loading of properties file corrected

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@180 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
This commit is contained in:
schlaepfer
2006-10-23 14:47:25 +00:00
parent afbdb640d5
commit fe38d72f65

View File

@@ -1,6 +1,7 @@
package ch.ntb.usb.logger;
import java.io.FileInputStream;
import java.net.URL;
import java.util.Properties;
import java.util.logging.ConsoleHandler;
import java.util.logging.Handler;
@@ -54,7 +55,8 @@ public class LogUtil {
private static void createLoggersFromProperties() {
try {
FileInputStream fis = new FileInputStream(PROPERTIES_FILE);
URL url = ClassLoader.getSystemResource(PROPERTIES_FILE);
FileInputStream fis = new FileInputStream(url.getFile());
Properties prop = new Properties();
prop.load(fis);
// get global debug enable flag