Logging for sending a message