Implement basic packet logging.