External log capture for Netlify Functions with LogDNA

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:

  1. straight up Rest API
  2. 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:

1 Like