List of usage examples for java.util.logging SocketHandler SocketHandler
public SocketHandler(String host, int port) throws IOException
From source file:Main.java
public Main(String host, int port) { try {// w w w. j av a 2 s.com handler = new SocketHandler(host, port); logger.addHandler(handler); } catch (IOException ioe) { ioe.printStackTrace(); } }