send and receive log over TCP/UDP, stores log in file.