logs message send from and received by the server to console