add logging ability in the Server class