Improving logging of received and sended data.