mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
1.2 KiB
Executable File
1.2 KiB
Executable File
Read this on the main serverless docs site
Spotinst Functions - Logs
Lets you view the logs for of the specified function.
serverless logs -f hello
Options
-fthe name of the function that you want to fetch the logs for Required--startTimea unit of time that you want to start searching the logs from. Here is a list of the supported string formats
30m # since 30 mins ago
2h # since 2 hours ago
3d # since 3 days ago
Examples
Note There is a small lag between calling the function and when the logs are available so keep that in mind when checking
serverless logs -f hello --startTime 3h
This will fetch your logs started from 3 hours ago until the current time