parser: inject a Logger into Parser instead of using wfDebug()