@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
You can test the integration by running the demo:
$ npm run demo -- --token <my-api-token>
You should install pino-logtail globally so that it can be used as a utility:
$ pnpm install --production -g @beyonk/pino-logtail
@beyonk/pino-logtail only supports a single config option, token
which is your logtail (or compatible) api token.