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

Support version flag for serverless logs to show logs for any previously deployed function version #62

Closed
HyperBrain opened this issue Jun 27, 2017 · 0 comments
Milestone

Comments

@HyperBrain
Copy link
Member

serverless logs --function=XXXX --alias=XXXX will only show the logs of the currently deployed function version. In case you want to compare the current logs with logs from versions that had been deployed previously, they will not be accessible with the command, but only with the AWS CW console. The old function logs normally are kept until the CW logs expiration is triggered.

This could be solved with a --version switch, that lets you select a specific version of the logs to show.
E.g. serverless logs --function=myFunc --version=130 would show the myFunc logs of version 130.

@HyperBrain HyperBrain added this to the 1.6.0 milestone Jan 24, 2018
@HyperBrain HyperBrain modified the milestones: 1.6.0, 1.7.0 Mar 7, 2018
HyperBrain added a commit that referenced this issue Mar 7, 2018
Enhance alias logs function #89 #62
defnotrobbie pushed a commit to 1stdibs/serverless-aws-alias that referenced this issue Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant