Skip to content
This repository was archived by the owner on Aug 26, 2022. It is now read-only.

docs(logger): Add Example for LogDNA Transport #672

Open
dthyresson opened this issue Apr 16, 2021 · 0 comments
Open

docs(logger): Add Example for LogDNA Transport #672

dthyresson opened this issue Apr 16, 2021 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers hacktoberfest good for Hacktoberfest help wanted Extra attention is needed

Comments

@dthyresson
Copy link
Contributor

dthyresson commented Apr 16, 2021

The logger documentation includes examples for how to use LogFlare and DataDog, but another popular transport is LogDNA.

This issue is a request to include how-to documentation in

See: https://github.com/redwoodjs/redwoodjs.com/blob/main/docs/logger.md

to setup LogDNA using the pino tranport.

// See: https://github.com/logdna/pino-logdna#api

const pinoLogdna = require('pino-logdna')
const opts = { /* pino options */ }
const stream = pinoLogdna({
   key: process.env.LOGDNA_INGESTION_KEY
 , onError: console.error
 })

// Logs now go to LogDNA
log.debug('Happy logging!') 
...
@dthyresson dthyresson added documentation Improvements or additions to documentation good first issue Good for newcomers labels Apr 16, 2021
@dthyresson dthyresson added the help wanted Extra attention is needed label May 14, 2021
@dthyresson dthyresson self-assigned this Jun 28, 2021
@thedavidprice thedavidprice added hacktoberfest-accepted PR approved for Hacktoberfest submission (even if not merged by Oct 31) hacktoberfest good for Hacktoberfest and removed hacktoberfest-accepted PR approved for Hacktoberfest submission (even if not merged by Oct 31) labels Oct 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers hacktoberfest good for Hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants