send and receive logging