serverless-heaven / serverless-aws-alias

Alias support for Serverless 1.x

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow monitoring API logs with "serverless logs"

HyperBrain opened this issue · comments

Now that APIG stage logs can be enabled, it would be very useful, if the "serverless logs" command could show these logs too. This would add the same convinience as for function logs.

Proposal

Add an --api switch to the command, that can be used instead of --function.

Samples

serverless logs --api --alias=myAlias --stage=dev --tail
serverless logs --api --stage=dev --tail
serverless logs --function=myFunc --alias=myAlias --stage=dev --tail

Please vote for this feature by adding a reaction to the top feature description. The more positive reactions, the higher I will prioritize it 😄