serverless-heaven / serverless-aws-alias

Alias support for Serverless 1.x
MIT License
189 stars 68 forks source link

Allow monitoring API logs with "serverless logs" #60

Closed HyperBrain closed 7 years ago

HyperBrain commented 7 years ago

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
HyperBrain commented 7 years ago

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