API Logging

Understand the important concepts related to API logging with API Gateway and CloudWatch.

Importance of logging

Comments and logs are a critical part of any application development. Unfortunately, most coders feel it’s an unnecessary overhead. Still, to help whoever maintains the code, you should invest every effort to ensure that the comments are accurate and intuitive.

That’s sufficient when we’re working on monoliths. When we come to the cloud and the serverless world, though, we need a lot more. For example, application logs get scattered when we have multiple independent API requests. It takes a rock-solid framework to collate the logs for each of these into one single repository.

No marks for guessing. We’re talking about the AWS CloudWatch service, the single ...