1.0.0-rc.3 • Published 2 months ago
@axiomhq/pino v1.0.0-rc.3
Axiom Transport for Pino logger
This is the official Axiom transport for Pino.
Quickstart
Install using npm install
:
npm install @axiomhq/pino
create a pino logger with Axiom configured:
import pino from 'pino';
const logger = pino(
{ level: 'info' },
pino.transport({
target: '@axiomhq/pino',
options: {
dataset: process.env.AXIOM_DATASET,
token: process.env.AXIOM_TOKEN,
},
}),
);
then you can use the logger as usual:
logger.info('Hello from pino!');
For further examples, head over to the examples directory.
License
Distributed under the MIT License.
1.0.0-rc.3
2 months ago
1.0.0-rc.2
3 months ago
1.0.0-rc.1
8 months ago
0.1.3
9 months ago
0.1.2
11 months ago
0.1.1
11 months ago
0.1.0
11 months ago