Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/liammartens/pino-axiom-transport
https://github.com/liammartens/pino-axiom-transport
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/liammartens/pino-axiom-transport
- Owner: LiamMartens
- Created: 2023-05-01T16:08:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-01T16:15:32.000Z (over 1 year ago)
- Last Synced: 2024-11-23T02:39:09.125Z (about 1 month ago)
- Language: TypeScript
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pino Axiom Transport
This is a very basic transport to Axiom for Pino. It is using the `fetch` API to ensure support for Edge runtimes such as Vercel Edge and Cloudflare Workers. If you are using this in an environment which does not have access to the `fetch` api, you will have to polyfill it globally.### Usage
```js
import pinoFactory from 'pino';const logger = pinoFactory({
transport: {
pipeline: [{
target: 'pino-axiom-transport',
options: {
dataset: process.env.AXIOM_DATASET,
token: process.env.AXIOM_TOKEN,
},
}],
},
});
```