Logging

Logging is what it says on the tin: statements that get printed out during the execution of the function. They are helpful in instrumenting the code.

In a typical API, these are directed to either StdOut or a file using different appenders.

In AWS Lambda, they are piped to a CloudWatch log group, which can be inspected at a later time.

Get Hands-On Serverless Applications with Kotlin now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.