client to server logging boilerplate