Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 831 Bytes

README.MD

File metadata and controls

34 lines (21 loc) · 831 Bytes

@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