Fix ca log #144 #142

Note: logger.js has several changes from the PDITCLogger version!