You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Documentation on running a minimal example is available in the [README](https://github.com/Vunovati/pino-opentelemetry-transport#minimalistic-example).
1001
1002
1003
+
<a id="@axiomhq/pino"></a>
1004
+
### @axiomhq/pino
1005
+
1006
+
[@axiomhq/pino](https://www.npmjs.com/package/@axiomhq/pino) is the official [Axiom](https://axiom.co/) transport for Pino, using [axiom-js](https://github.com/axiomhq/axiom-js).
1007
+
1008
+
```javascript
1009
+
importpinofrom'pino';
1010
+
1011
+
constlogger=pino(
1012
+
{ level:'info' },
1013
+
pino.transport({
1014
+
target:'@axiomhq/pino',
1015
+
options: {
1016
+
dataset:process.env.AXIOM_DATASET,
1017
+
token:process.env.AXIOM_TOKEN,
1018
+
},
1019
+
}),
1020
+
);
1021
+
```
1022
+
1023
+
then you can use the logger as usual:
1024
+
1025
+
```js
1026
+
logger.info('Hello from pino!');
1027
+
```
1028
+
1029
+
For further examples, head over to the [examples](https://github.com/axiomhq/axiom-js/tree/main/examples/pino) directory.
0 commit comments