Skip to content

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

Closed
@HyperBrain

Description

@HyperBrain

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions