Replace console output with synchronized XML logging, including timestamps, startup and shutdown events, errors, cancellations, timeouts, restarts, and abnormal server exits. Save the completed report as `ClientReport.xml` in the executable directory.