Help Center/
FunctionGraph/
Developer Guide/
Development Tools/
Serverless Framework/
CLI Reference/
Logs
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.
Parent topic: CLI Reference
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot