Skip to content

beyonk-group/pino-logtail

Repository files navigation

@beyonk/pino-logtail

@beyonk/pino-logtail is a so called "transport" for the pino logger. pino-logtail receives pino logs from stdin and sends them to a logsene compatible logger such as logtail via @logtail/node.

For example:

$ node your-app.js | pino-logtail --token my-api-token

Demo

You can test the integration by running the demo:

$ npm run demo -- --token <my-api-token>

Install

You should install pino-logtail globally so that it can be used as a utility:

$ pnpm install --production -g @beyonk/pino-logtail

Configuration

@beyonk/pino-logtail only supports a single config option, token which is your logtail (or compatible) api token.

License

MIT License

About

Pino Logtail log transport

Resources

Stars

Watchers

Forks

Packages

No packages published