Wrote a log file generator that is common to both server and client.