@dotcom-reliability-kit/middleware-log-errors
Advanced tools
Comparing version 1.2.7 to 1.2.8
@@ -1,5 +0,1 @@ | ||
/** | ||
* @module @dotcom-reliability-kit/middleware-log-errors | ||
*/ | ||
const { logHandledError } = require('@dotcom-reliability-kit/log-error'); | ||
@@ -16,3 +12,3 @@ | ||
* | ||
* @access public | ||
* @public | ||
* @param {ErrorLoggingOptions} [options = {}] | ||
@@ -19,0 +15,0 @@ * Options to configure the middleware. |
{ | ||
"name": "@dotcom-reliability-kit/middleware-log-errors", | ||
"version": "1.2.7", | ||
"version": "1.2.8", | ||
"description": "Express middleware to consistently log errors", | ||
@@ -19,6 +19,6 @@ "repository": { | ||
"dependencies": { | ||
"@dotcom-reliability-kit/log-error": "^1.3.6" | ||
"@dotcom-reliability-kit/log-error": "^1.3.7" | ||
}, | ||
"devDependencies": { | ||
"@financial-times/n-express": "^26.1.2", | ||
"@financial-times/n-express": "^26.3.0", | ||
"@types/express": "^4.17.14", | ||
@@ -25,0 +25,0 @@ "node-fetch": "^2.6.7" |
@@ -34,3 +34,4 @@ | ||
:warning: this middleware **must** be added to your Express app _after_ all your application routes – you won't get error logs for any routes which are mounted after this middleware: | ||
> **Warning** | ||
> This middleware **must** be added to your Express app _after_ all your application routes – you won't get error logs for any routes which are mounted after this middleware. | ||
@@ -75,3 +76,4 @@ ```js | ||
**Note:** if you're also using [n-raven v6.1+](https://github.com/Financial-Times/n-raven) in your application then the Raven error logging will be deactivated so that you don't get double-logged errors. | ||
> **Note** | ||
> If you're also using [n-raven v6.1+](https://github.com/Financial-Times/n-raven) in your application then the Raven error logging will be deactivated so that you don't get double-logged errors. | ||
@@ -103,3 +105,4 @@ ### Configuration options | ||
**Note:** there's no need to include the `x-request-id` header in this array, as this is automatically included as `request.id` in the logs. | ||
> **Note** | ||
> There's no need to include the `x-request-id` header in this array, as this is automatically included as `request.id` in the logs. | ||
@@ -106,0 +109,0 @@ |
116
6616
50