Add ability to send messages to server for logging.