Updated log levels

This commit is contained in:
Ziver Koc 2015-10-28 12:56:22 +01:00
parent 78e4e108c3
commit 35af69def3

View file

@ -64,8 +64,11 @@ public class CoderClient extends Application{
public void start(Stage mainStage) throws Exception {
//setup logging
LogUtil.setGlobalLevel(Level.FINE);
LogUtil.setGlobalFormatter(new CompactLogFormatter());
CompactLogFormatter formatter = new CompactLogFormatter();
LogUtil.setLevel("com.coder", Level.FINE);
LogUtil.setFormatter("com.coder", formatter);
LogUtil.setLevel("zutil", Level.FINE);
LogUtil.setFormatter("com.coder", formatter);
//setup GUI elements
this.mainStage = mainStage;
@ -423,7 +426,9 @@ public class CoderClient extends Application{
selectServerDialog.addServerToList(ip);
}
});
}
} else {
logger.warning("New Service found ("+service.getLocation()+") when stage closed.");
}
}
});
ssdpClient.start();