Skip to content

Commit 98375bc

Browse files
authored
docs(transports): add axiom #1753 (#1754)
* docs(transports): add axiom #1753 * Update transports.md
1 parent f9ea424 commit 98375bc

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

docs/transports.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,8 @@ PRs to this document are welcome for any new transports!
398398
+ [pino-sentry-transport](#pino-sentry-transport)
399399
+ [pino-airbrake-transport](#pino-airbrake-transport)
400400
+ [pino-datadog-transport](#pino-datadog-transport)
401-
+ [pino-slack-webhook](#pino-slack-webhook)
401+
+ [pino-slack-webhook](#pino-slack-webhook)
402+
+ [pino-axiom](#pino-axiom)
402403
403404
### Legacy
404405
@@ -934,6 +935,26 @@ pino(transport)
934935
935936
[pino-pretty]: https://github.com/pinojs/pino-pretty
936937
938+
For full documentation of command line switches read the [README](https://github.com/abeai/pino-websocket#readme).
939+
940+
<a id="pino-axiom"></a>
941+
### pino-axiom
942+
943+
[pino-axiom](https://www.npmjs.com/package/pino-axiom) is a transport that will forward logs to [Axiom](https://axiom.co).
944+
945+
```javascript
946+
const pino = require('pino')
947+
const transport = pino.transport({
948+
target: 'pino-axiom',
949+
options: {
950+
orgId: 'YOUR-ORG-ID',
951+
token: 'YOUR-TOKEN',
952+
dataset: 'YOUR-DATASET',
953+
},
954+
})
955+
pino(transport)
956+
```
957+
937958
<a id="communication-between-pino-and-transport"></a>
938959
## Communication between Pino and Transports
939960
Here we discuss some technical details of how Pino communicates with its [worker threads](https://nodejs.org/api/worker_threads.html).

0 commit comments

Comments
 (0)