Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

express-winston

Package Overview
Dependencies
Maintainers
3
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-winston - npm Package Compare versions

Comparing version 4.1.0 to 4.2.0

4

CHANGELOG.md

@@ -0,1 +1,5 @@

## 4.2.0
* Upgraded lodash to 4.17.21 minimum ([#264](https://github.com/bithavoc/express-winston/issues/264))
* Fixed typos and Readme format ([#262](https://github.com/bithavoc/express-winston/pull/262))
## 4.1.0

@@ -2,0 +6,0 @@ * Update chalk and lodash due minor security impact ([#252](https://github.com/bithavoc/express-winston/pull/252))

4

package.json

@@ -19,3 +19,3 @@ {

],
"version": "4.1.0",
"version": "4.2.0",
"repository": {

@@ -36,3 +36,3 @@ "type": "git",

"chalk": "^2.4.2",
"lodash": "^4.17.20"
"lodash": "^4.17.21"
},

@@ -39,0 +39,0 @@ "devDependencies": {

@@ -128,3 +128,3 @@ # express-winston

The logger needs to be added AFTER the express router(`app.router)`) and BEFORE any of your custom error handlers(`express.handler`). Since express-winston will just log the errors and not __handle__ them, you can still use your custom error handler like `express.handler`, just be sure to put the logger before any of your handlers.
The logger needs to be added AFTER the express router (`app.router`) and BEFORE any of your custom error handlers (`express.handler`). Since express-winston will just log the errors and not __handle__ them, you can still use your custom error handler like `express.handler`, just be sure to put the logger before any of your handlers.

@@ -426,3 +426,3 @@ #### Options

expressWinston.responseWhitelist.push('body.import.value');
expressWinston.responseWhitelist.push('body.important.value');

@@ -457,3 +457,3 @@ A response that looks like this :

New in version 0.2.x is the ability to add whitelist elements in a route. express-winston adds a `_routeWhitelists` object to the `req`uest, containing `.body`, `.req` and .res` properties, to which you can set an array of 'whitelist' parameters to include in the log, specific to the route in question:
New in version 0.2.x is the ability to add whitelist elements in a route. express-winston adds a `_routeWhitelists` object to the `req`uest, containing `.body`, `.req` and `.res` properties, to which you can set an array of 'whitelist' parameters to include in the log, specific to the route in question:

@@ -517,3 +517,3 @@ ``` js

If you set statusLevels to true express-winston will log sub 400 responses at info level, sub 500 responses as warnings and 500+ responses as errors. To change these levels specify an object as follows
If you set `statusLevels` to `true` express-winston will log sub 400 responses at info level, sub 500 responses as warnings and 500+ responses as errors. To change these levels specify an object as follows
```json

@@ -529,3 +529,3 @@ "statusLevels": {

If you set statusLevels to false and assign a function to level, you can customize the log level for any scenario.
If you set `statusLevels` to `false` and assign a function to level, you can customize the log level for any scenario.

@@ -550,3 +550,3 @@ ```js

If you set dynamicMeta function you can extract additional meta data fields from request or response objects.
If you set `dynamicMeta` function you can extract additional meta data fields from request or response objects.
The function can be used to either select relevant elements in request or response body without logging them as a whole

@@ -553,0 +553,0 @@ or to extract runtime data like the user making the request. The example below logs the user name and role as assigned

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc