express-pino-logger
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "express-pino-logger", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "An express middleware to log with pino", | ||
@@ -29,3 +29,3 @@ "main": "logger.js", | ||
"dependencies": { | ||
"pino-http": "^1.0.5" | ||
"pino-http": "^1.2.0" | ||
}, | ||
@@ -35,3 +35,3 @@ "devDependencies": { | ||
"express-bunyan-logger": "^1.2.0", | ||
"express-winston": "^1.3.0", | ||
"express-winston": "^2.0.0", | ||
"morgan": "^1.7.0", | ||
@@ -41,7 +41,6 @@ "pino": "^2.1.6", | ||
"split2": "^2.0.1", | ||
"standard": "^6.0.8", | ||
"tap": "^5.7.0", | ||
"winston": "^2.2.0", | ||
"winston-express": "^0.1.1" | ||
"standard": "^8.0.0", | ||
"tap": "^6.0.0", | ||
"winston": "^2.2.0" | ||
} | ||
} |
@@ -112,4 +112,16 @@ # express-pino-logger [![Build Status](https://travis-ci.org/mcollina/express-pino-logger.svg)](https://travis-ci.org/mcollina/express-pino-logger) | ||
You can also reuse an instance of `pino` by passing it in the | ||
constructor with: | ||
``` | ||
'use strict' | ||
const pino = require('pino')() | ||
const expressPino = require('express-pino-logger')({ | ||
logger: pino | ||
}) | ||
``` | ||
## License | ||
MIT |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13793
10
127
Updatedpino-http@^1.2.0