title: How to write error logs from command prompt to a file in protractor
body: <p>I am using protractor-cucumber frame work. I am running my protractor script by the command <code>protractor conf.js</code> from the command prompt. I need to write the error logs from the command prompt to a external <code>.log</code> file after the execution of the protractor script. How can I catch this command prompt output to a file through the code. I need to <strong>get the logs</strong> in <strong>both command prompt</strong> and in an <strong>external</strong> <code>.log</code> file for which we should give the <code>.log</code> file path in the code).</p>