Added configurable logging to the server.