Closed davideicardi closed 2 years ago
TL;DR use https://github.com/FormidableLabs/pino-lambda.
It's possible to use pino with Lambda directly; however, you are on your own. Lambda is such a specialized runtime (they patch Node.js) that it is hard for us to support them and provide a good experience for everybody else. pino-lambda
sets everything up correctly to work with Lambda.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
I'm a little confused on how pino should be used inside an AWS Lambda environment.
Here the questions:
For what I can see in my environment, with pino 8.6.1 and without using any special plugin, logging is actually asynchronous (sometime I miss some logs). Should I turn it off manually with
sync: false
?I see some other issues like #1448 and #1217, but I don't understand which steps are really necessary for AWS Lambda integration to not miss logs.
thank you!