Updated on 2023-11-22 GMT+08:00

Logs

View the logs of a specific function.
serverless logs --function functionName

Options

  • --function or -f: The function for obtaining the logs. Required.
  • --count or -c: The number of logs to display.

Example

Retrieve logs
serverless logs --function functionName

This will display logs for the specified function.