sentence: if a pen register or trap and trace device is used on a packet-switched data network , then the agency doing surveillance must keep a detailed log containing : this information must be generated for the entire time the device is active , and must be provided ex parte and under seal to the court which entered the ex parte order authorizing the installation and use of the device .