Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: refactor logging, capture for dashboard recordings, output to file, serialize browser console logs #2078

Closed
11 tasks
brian-mann opened this issue Jul 1, 2018 · 5 comments
Assignees
Labels
cli Epic Requires breaking up into smaller issues pkg/server This is due to an issue in the packages/server directory

Comments

@brian-mann
Copy link
Member

brian-mann commented Jul 1, 2018

More comprehensive proposal is needed but summary is this:

  • Refactor existing debug / log implementation
  • Create logger wrapper utility to manage all logic
  • Route debug, console.log and performance data through this utility
  • Enable silencing all node based console.log per Option to disable Cypress the verbose results to stdout #2071
  • Capture browser console methods per Serialize console.log/info/warn/error to stdout on CLI runs #700
  • Write all logs to an output.log per project in AppData
  • Persist logs on recorded dashboard runs
  • Enable changing the logs folder via some CLI flag like --logs-folder=/path/to/logs
  • Fix morgan output always appearing
  • Expose a pluginEvent for internal:log perhaps
  • Start capturing performance related data in logs
@brian-mann brian-mann self-assigned this Jul 1, 2018
@brian-mann brian-mann added the Epic Requires breaking up into smaller issues label Jul 1, 2018
@jennifer-shehane
Copy link
Member

Would this issue cover this request? #2991

@jennifer-shehane jennifer-shehane added stage: proposal 💡 No work has been done of this issue cli pkg/server This is due to an issue in the packages/server directory and removed stage: in progress labels Jan 28, 2019
@oghmjos
Copy link

oghmjos commented Mar 15, 2019

As first step, having feature to upload text files from logs directory to dashboard would be very helpful and could be a good jumpstart. Will enhance cypress-failed-log plugin too with no extra effort. Maybe its already planned in the nearest future?

@cypress-bot cypress-bot bot added stage: ready for work The issue is reproducible and in scope and removed stage: proposal 💡 No work has been done of this issue labels Jan 2, 2020
@jennifer-shehane jennifer-shehane removed the stage: ready for work The issue is reproducible and in scope label Dec 17, 2020
@jennifer-shehane
Copy link
Member

Since this issue hasn't had activity in a while, we'll close this issue.

@jrr
Copy link

jrr commented Mar 23, 2021

FYI this (closed) issue is still referenced from the FAQ:

https://docs.cypress.io/faq/questions/using-cypress-faq/#Can-I-print-the-list-of-commands-from-a-test-in-the-terminal

@jennifer-shehane
Copy link
Member

@jrr Thanks, updating the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Epic Requires breaking up into smaller issues pkg/server This is due to an issue in the packages/server directory
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants