mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
add docs about getting aws logs without giving startTime
This commit is contained in:
parent
4873ebf1c3
commit
e2ca5735cd
@ -62,6 +62,11 @@ This command returns as many log events as can fit in 1MB (up to 10,000 log even
|
||||
|
||||
**Note:** There's a small lag between invoking the function and actually having the log event registered in CloudWatch. So it takes a few seconds for the logs to show up right after invoking the function.
|
||||
|
||||
```bash
|
||||
serverless logs -f hello
|
||||
```
|
||||
This will fetch the logs from last 10 minutes as startTime was not given.
|
||||
|
||||
```bash
|
||||
serverless logs -f hello --startTime 5h
|
||||
```
|
||||
@ -76,7 +81,7 @@ This will fetch the logs that happened starting at epoch `1469694264`.
|
||||
serverless logs -f hello -t
|
||||
```
|
||||
|
||||
Serverless will tail the CloudWatch log output and print new log messages coming in.
|
||||
Serverless will tail the CloudWatch log output and print new log messages coming in starting from 10 seconds ago.
|
||||
|
||||
```bash
|
||||
serverless logs -f hello --filter serverless
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user