Sample client-server logging application in Java