Replace log4js with debug, pass `require` to defaultable