logging received data for output