winston-middleware 0.3.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Readme.md +6 -0
- package/package.json +2 -2
package/Readme.md
CHANGED
|
@@ -5,8 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
## Installation
|
|
7
7
|
|
|
8
|
+
Newcomers should start with the latest branch which makes use of winston 1.x.x:
|
|
9
|
+
|
|
8
10
|
npm install winston-middleware
|
|
9
11
|
|
|
12
|
+
If you're already using winston-middleware, and want to stick with the stable version based on winston 0.9.x, you should instead do:
|
|
13
|
+
|
|
14
|
+
npm install winston-middleware@0.3.x --save
|
|
15
|
+
|
|
10
16
|
## Usage
|
|
11
17
|
|
|
12
18
|
winston-middleware provides middlewares for request and error logging of your express.js application. It uses 'whitelists' to select properties from the request and (new in 0.2.x) response objects.
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"middleware",
|
|
18
18
|
"colors"
|
|
19
19
|
],
|
|
20
|
-
"version": "0.
|
|
20
|
+
"version": "1.0.0",
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
23
23
|
"url": "https://github.com/bithavoc/winston-middleware.git"
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"chalk": "~0.4.0",
|
|
51
51
|
"underscore": "~1.5.2",
|
|
52
|
-
"winston": "~0.
|
|
52
|
+
"winston": "~1.0.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"blanket": "~1.1.6",
|