Exercise: Server with tracing

In this exercise you must add tracing to one of your working (and tested) servers, for example the TCP EchoServer.

Add tracing

Add tracing to the server: Whenever something important happens to the server it shoud be written to the Trace.

Important events in the life of a server:

Add a listener

Add a listener to the server, so that the trace messages are written into a log file.

Run the server, make some requests, and then open the file to examine the contents of the file.