Last active
December 18, 2018 04:43
-
-
Save obengwilliam/6eb9d566a299fad95e34ee96d54bbe4d to your computer and use it in GitHub Desktop.
Simple log api
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
const {logOnRequest} = require('pino-wrapper') | |
const app = require('express')() | |
app.use(logOnRequest()) // should attach a log instance to req.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment