We wanted to capture more persistent serverless function logs. https://logdna.com/ seemed like a cost effective solution for this and some of other logging needs.
Two serverless function approaches to using the service:
- straight up Rest API
- console log override for convenience (you can also just use logger directly).
The example works for me on Netlify and locally using netlify dev
.
Based on: