express-bunyan-logger
Advanced tools
Comparing version 0.0.1 to 0.0.2
var bunyan = require('bunyan'), | ||
useragent = require('useragent') | ||
; | ||
useragent = require('useragent'); | ||
@@ -5,0 +4,0 @@ |
{ | ||
"name": "express-bunyan-logger", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "a bunyan logger middleware for express", | ||
@@ -11,3 +11,3 @@ "main": "index.js", | ||
"type": "git", | ||
"url": "https://github.com/villadora/exporess-buyan-logger.git" | ||
"url": "https://github.com/villadora/express-bunyan-logger.git" | ||
}, | ||
@@ -14,0 +14,0 @@ "keywords": [ |
@@ -11,3 +11,2 @@ # Express-bunyan-logger | ||
npm install express-bunyan-logger | ||
@@ -18,11 +17,11 @@ ## Usage | ||
app.courier(require('express-bunyan-logger')()); | ||
app.use(require('express-bunyan-logger')()); | ||
To use the errorLogger: | ||
app.courier(require('express-bunyan-logger').errorLogger()); | ||
app.use(require('express-bunyan-logger').errorLogger()); | ||
And you can also pass bunyan logger options to the logger middleware: | ||
app.courier(require('express-bunyan-logger')({name: 'logger', streams : [ {level :'info', stream: process.stdout}]})); | ||
app.use(require('express-bunyan-logger')({name: 'logger', streams : [ {level :'info', stream: process.stdout}]})); | ||
@@ -45,4 +44,4 @@ ## License | ||
must display the following acknowledgement: | ||
This product includes software developed by the <organization>. | ||
4. Neither the name of the <organization> nor the | ||
This product includes software developed by the villa.gao. | ||
4. Neither the name of the villa.gao nor the | ||
names of its contributors may be used to endorse or promote products | ||
@@ -49,0 +48,0 @@ derived from this software without specific prior written permission. |
9118
127
57