|
Java™ by example!
|
|
|
How do I use the SocketHandler?
This example creates a SocketHandler that writes log messages to localhost:5667. The second example, the server, listens to this port and prints out whatever it gets. Notice that the default formatter for SocketHandler is XMLFormatter. Main.java:
LogServer.java:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|