1.2.0 • Published 8 months ago
@axiomhq/pino v1.2.0
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.2.0
8 months ago
1.1.1
9 months ago
1.0.0
11 months ago
1.0.0-rc.4
11 months ago
1.0.0-rc.3
1 year ago
1.0.0-rc.2
1 year ago
1.0.0-rc.1
2 years ago
0.1.3
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago