Is there a way to get the sls deploy command to output timestamps of its progress? I want to know what the slow part of my deployment is, but I’ve not got enough information.
When running the command interactively, theres a timer that says how long it has been running. But there’s no way to determine after the fact how long it took to download/install dependencies, build the Lambda layer, compile the template, and then wait for CloudFormation to say that it completed.
And is the solution any different when using a Serverless Compose file?
I can use --verbose but that just logs more lines without any timestamps.
I’ve been using the ts approach since not long after the post. But given that it’s logging and most logging uses a framework (not just “print”) and frameworks normally have a way of handling timestamps then I was hoping for something integrated.
Is there any documentation on adding logging to hooks? Because all I’m finding so far is a “Serverless Hooks” plugin, whereas you made it sound like it’s an existing feature.