Logger l = Logger.getAnonymousLogger();
l.setLevel(Level.ALL);
String wsAddress = "http://localhost:8765/";
Endpoint.publish(wsAddress, new TestWebService());
l.log(Level.INFO,"The web service started. It can be located at " + wsAddress);
Bear in mind that most professional programs use log4j, not the JDK logging API