hapi-logr
v9.0.4
Published
Hapi logging plugin using Logr
Downloads
515
Keywords
Readme
Hapi plugin to integrate logr reporters
Installation
npm install hapi-logror
yarn add hapi-logrUsage
const Hapi = require('@hapi/hapi');
const server = new Hapi.Server();
await server.register({
plugin: require('hapi-logr'),
options: { // logr-all options can be set here
unhandledRejection: true
uncaughtException: true
}
});
// Logr handles this
server.log(['start'], { message: 'server started', uri: server.info.uri });A First + Third Project
