Log network packets as you want