move logger function to startudp.sh