Added a packet logger utility