legalese / legalese.github.io

Static assets for legalese.com
https://legalese.com/
70 stars 27 forks source link

strip the root directory from logging output #89

Open mengwong opened 8 years ago

mengwong commented 8 years ago

at present xml2pdf-lib.jsx produces logging output of the form

Fri Feb 12 2016 21:53:35 GMT+0800 xmls2pdf: starting ~/Google Drive/incoming/Fynd - JFDI Class F 20160212-214747/06 - Instruction to Corpsec for Allotment.xml

get rid of the first part of the path, which corresponds to the rootFolder, so that log lines look like

Fri Feb 12 2016 21:53:35 GMT+0800 xmls2pdf: starting Fynd - JFDI Class F 20160212-214747/06 - Instruction to Corpsec for Allotment.xml