node-chromedriver
node-chromedriver copied to clipboard
Allow to provide custom writeable stream for logs
It would be great if users could pass in a custom writeable stream to direct Chromedriver logs to a dedicated location.
Chromedriver is a binary executable not a Node.js script, and this package does not control it, it only allows you to install it and start the process. I'm not sure this idea is feasible. How do you see it being implemented?
Sorry for not being clear enough. Currently starting the Chromedriver process programatically only allows to pipe the stdout/stderr into the process stdout/stderr. It would be great if some option arguments could be passed in that would allow to control this better, e.g. make this piping optional, create spawn process first, then wait for for the port to open so we can attach to the process stdout in between. I've been successfully working around this.
Ok, that makes sense. A PR is welcome but it must not break the existing api.