1.0.2 • Published 1 year ago

meitrics v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Meitrics npm package

The NPM package for Meitrics with node

import express from 'express';
const app = express();

import Meitrics from 'meitrics';

const log = Meitrics({
	publicKey: 'PUBLIC_KEY',
	secretKey: 'SECRET_KEY'
});

app.get('/', (req, res) => {
	try {
		aFunctionThatMightCrash();
	} catch (error) {
		log.error({ url: '/', message: 'Something went wrong' });
	}
});

app.listen(3000, () => {
	log.info({ message: 'Server is up and running' });
});
1.0.2

1 year ago

1.0.1

1 year ago

0.0.1

1 year ago