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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
9.0.417latest

Version History

VersionDownloads (Last 7 Days)Published
9.0.417
9.0.30
9.0.20
9.0.10
9.0.00
7.0.00
6.3.01
6.2.00
6.1.10
6.1.03
6.0.00
5.0.24
5.0.10
5.0.00
4.0.10
3.7.10
4.0.00
3.7.01
3.6.10
3.6.00
3.5.10
3.5.00
3.4.00
3.3.00
3.2.00
3.0.00
2.2.00
2.1.00
2.0.00
1.7.00
1.6.00
1.5.00
1.4.00
1.3.00
1.2.00
1.1.00
1.0.00
0.0.30
0.0.20
0.0.10

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