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

Add functions:log command #58

Closed
bcomnes opened this issue Aug 28, 2018 · 1 comment
Closed

Add functions:log command #58

bcomnes opened this issue Aug 28, 2018 · 1 comment

Comments

@bcomnes
Copy link
Contributor

bcomnes commented Aug 28, 2018

netlify functions:log create-todo => pulls down the function logs that the UI displays

Use case:

As I'm pinging my live functions, it would be awesome to stream in the logs locally to a terminal window.

Questions:

  • Should logs tail by default or should user supply -t flag?

Potential way for handling multiple deploy previews:

# netlify functions:logs create
# streams in all logs from all live preview urls + master
# [context] functionName: log output
[branch-xyz] create: (log blah blah blah)
[branch-xyz] create: (log yaddy yaddy yadda)
[branch-my-other-feature] create: (log blah blah blah)
[master] create: (log blah blah blah)
[master] create: (log blah blah blah)

If I want a specific preview url I could supply as a flag

# netlify functions:logs create -c master
# -c for context, only show master logs
[master] create: (log yaddy yaddy yadda)
[master] create: (log blah blah blah)
[master] create: (log lol lol lol)
@bcomnes bcomnes closed this as completed Aug 28, 2018
@bcomnes
Copy link
Contributor Author

bcomnes commented Aug 28, 2018

Dupe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant