hapi-logr

9.0.4 • Public • Published

hapi-logr

Test Status Lint Status NPM

Hapi plugin to integrate logr reporters

Installation

npm install hapi-logr

or

yarn add hapi-logr

Usage

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

Readme

Keywords

none

Package Sidebar

Install

npm i hapi-logr

Weekly Downloads

26

Version

9.0.4

License

MIT

Unpacked Size

8.15 kB

Total Files

12

Last publish

Collaborators

  • jga
  • dawnerd
  • ecwillis
  • orthagonal1
  • alaguna
  • aleperez92