DEV Community

Discussion on: Serverless Logs

Collapse
 
loujaybee profile image
Lou (🚀 Open Up The Cloud ☁️)

Cool article Marco! This covers some important and interesting nuances about logging in serverless, which is definitely not easy! And as you say, a really important aspect.

I thought you might find this package, and specifically this module interesting if you haven't already seen it:

github.com/getndazn/dazn-lambda-po...

Collapse
 
mstn profile image
Marco

Hey @Lou, thanks for your comment and the link. I was aware of that package and I was going to mention it. As far as I know, its implementation is based on the first links above (or the other way around :P).

The log-timeout middleware is useful to get warnings when a lambda times out if I understand correctly. In fact, native AWS timeout messages are quite hard to spot.

In this post, I'm saying that sometimes it is better sacrifice "logging" in order to avoid timeouts in the first place.

Collapse
 
loujaybee profile image
Lou (🚀 Open Up The Cloud ☁️)

Awesome — also congrats on your first DEV article! I'm the mod for serverless, so let me know if you have any ideas or thoughts! :)