tcp server with log

cd /tmp/ && while :; do nc -l -p 4444 | tee  output.log; sleep 1; done