Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/firstandthird/hapi-logr
Hapi logging plugin using Logr
https://github.com/firstandthird/hapi-logr
hapi-plugin hapi-v17
Last synced: 3 days ago
JSON representation
Hapi logging plugin using Logr
- Host: GitHub
- URL: https://github.com/firstandthird/hapi-logr
- Owner: firstandthird
- License: mit
- Created: 2016-02-24T21:57:14.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2023-03-05T16:19:12.000Z (almost 2 years ago)
- Last Synced: 2025-01-11T23:03:41.145Z (11 days ago)
- Topics: hapi-plugin, hapi-v17
- Language: JavaScript
- Size: 327 KB
- Stars: 0
- Watchers: 6
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
hapi-logr
Hapi plugin to integrate logr reporters
## Installation
```sh
npm install hapi-logr
```_or_
```sh
yarn add hapi-logr
```## Usage
```javascript
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](https://firstandthird.com) Project_