예제 #1
0
파일: HostInfo.java 프로젝트: yaoml/redfire
  public HostInfo(InetAddress address, String name) {
    super();

    String SLevel = System.getProperty("jmdns.debug");
    if (SLevel == null) SLevel = "INFO";
    logger.setLevel(Level.parse(SLevel));

    this.address = address;
    this.name = name;
    if (address != null) {
      try {
        interfaze = NetworkInterface.getByInetAddress(address);
      } catch (Exception exception) {
        // FIXME Shouldn't we take an action here?
        logger.log(Level.WARNING, "LocalHostInfo() exception ", exception);
      }
    }
  }
예제 #2
0
 static {
   _libraryLogger.setLevel(Level.INFO);
 }