collect log and transmit