Package java.util.logging

Examples of java.util.logging.SocketHandler


          return new FileHandler(config.substring(5));
        } else if (config.startsWith("file")) {
          return new FileHandler("%h/modulizer%u.log");
        } else if (config.startsWith("socket:")) {
          final URI cfg = URI.create(config);
          return new SocketHandler(cfg.getHost(), cfg.getPort());
        } else {
          return null;
        }
      } catch (final Exception e) {
        log.log(Level.CONFIG, "invalid logging config: " + config, e);
View Full Code Here

TOP

Related Classes of java.util.logging.SocketHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.