title: cypress write customised logs into file with writeFile is a good idea?
body: <p>I would like to write some customised logs into files with <code>cypress</code>. Such as 'current test case name', 'user's id used for this test', 'fail or pass', etc. </p>
  
  <p>I googled awhile, found <code>cy.writeFile</code> meet my needs. But it seems most people would recommend <code>cy.task</code> for logging.</p>
  
  <p>So is <code>cy.writeFile</code> for logging a good idea? If not, what's the reason?</p>
  
  <p>Thanks!</p>
  
  <p>BTW, here's the codes, very simple:</p>
  
  <pre><code>function logger (log) {
    cy.writeFile('logs/combined.log', log + '\n', { flag: 'a+' })
  }
  
  module.exports = {
    logger
  }
  </code></pre>