title: Cypress pipe console.log and command log to output
body: <p>Is it possible to redirect or capture Cypress browser log and command log to output?</p>
  <p>I read some Cypress github <a href="https://github.com/cypress-io/cypress/issues/448" rel="noreferrer">issues</a> on this topic. But I don't know how to make it work.</p>
  <p>Basically, I want to capture all the Cypress GUI command logs in the headless non-GUI mode. If I can include browser console log will be even better. The purpose is to understand what happened when a test fails.</p>
  <p>I use teamcity as ci. Here is an example of my build log. I want to see all the command log here too. Actually, any console.log run on the server side using <code>cy.task</code> is displayed in the build log. Running <code>cy.task('log',message)</code> is too manual. Any smarter ways?</p>
  <pre><code>[09:49:08][Step 1/1] 2 of 4: new actions (52s)
  [09:50:00][Step 1/1] 3 of 4: new actions (52s)
  [09:50:53][Step 1/1] 4 of 4: new actions (53s)
  [09:51:47][Step 1/1]   (Results)
  [09:51:47][Step 1/1] 
  [09:51:47][Step 1/1]   ┌─────────────────────────────────────┐
  [09:51:47][Step 1/1]   │ Tests:        8                     │
  [09:51:47][Step 1/1]   │ Passing:      8                     │
  [09:51:47][Step 1/1]   │ Failing:      0                     │
  [09:51:47][Step 1/1]   │ Pending:      0                     │
  [09:51:47][Step 1/1]   │ Skipped:      0                     │
  [09:51:47][Step 1/1]   │ Screenshots:  0                     │
  [09:51:47][Step 1/1]   │ Video:        true                  │
  [09:51:47][Step 1/1]   │ Duration:     3 minutes, 38 seconds │
  [09:51:47][Step 1/1]   │ Estimated:    1 minute, 8 seconds   │
  [09:51:47][Step 1/1]   │ Spec Ran:     action/action_spec.js │
  [09:51:47][Step 1/1]   └─────────────────────────────────────┘
  </code></pre>