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

Stream back deploy & function logs #119

Closed
DavidWells opened this issue Sep 19, 2018 · 4 comments · Fixed by #762
Closed

Stream back deploy & function logs #119

DavidWells opened this issue Sep 19, 2018 · 4 comments · Fixed by #762
Labels
area: command: deploy area: dx area: functions type: feature code contributing to the implementation of a feature and/or user facing functionality

Comments

@DavidWells
Copy link
Contributor

Add ability for user to see deploy logs in CLI. Also the ability for user to see function logs in the CLI (potentially separate issue)

We could stream back deploy logs on netlify watch and netlify deploy

Notes:

If this requires adding leaking firebase client into the CLI, we should put this feature off until a bespoke logs API is usable via https://open-api.netlify.com/#/default

Fallback potentially looks like: #70 ?

Future/potential alt API:

Potentially a master netlify logs command

@RaeesBhatti
Copy link
Contributor

This functionality was initially implemented in #762 but later reverted because of NodeJS compatibility issues. I'm think maybe we can precompile incompatible code and include that. Opening again to investigate further.

@RaeesBhatti RaeesBhatti reopened this May 8, 2020
@RaeesBhatti RaeesBhatti self-assigned this May 8, 2020
@RaeesBhatti RaeesBhatti added the type: feature code contributing to the implementation of a feature and/or user facing functionality label May 9, 2020
@RaeesBhatti RaeesBhatti removed their assignment Dec 11, 2020
@Jolg42
Copy link

Jolg42 commented Oct 1, 2021

@RaeesBhatti That would be an amazing feature (that competition already has implemented), would be nice to give it a second shot I think 😃

@whitep4nth3r
Copy link
Contributor

I would love to see this!

@sarahetter
Copy link
Contributor

This has been added in netlify-cli@17.5.0 🎉

  • netlify logs:deploy to have an interactive selector for currently active builds
  • netlify logs:functions to have an interactive selector for all functions on a site
  • netlify logs:functions my-function-name to instantly stream the logs for a given function, in this case my-function-name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: command: deploy area: dx area: functions type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants