@goodware/log
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -18,4 +18,4 @@ /* eslint-disable no-param-reassign */ | ||
* and the following methods: | ||
* 1. error(error) | ||
* 2. end(meessage) Logs endMessage and message with | ||
* 1. error({Error} error) | ||
* 2. end({*} message) Logs endMessage and message with: | ||
* a) tag: 'end' | ||
@@ -22,0 +22,0 @@ * b) operationId |
@@ -38,5 +38,5 @@ const Defaults = require('./Defaults'); | ||
* GeneratorLogger.begin with the following additional properties: | ||
* 1. sql | ||
* 2. values | ||
* 3. summary: A summarized version of the sql argument | ||
* 1. {String} sql | ||
* 2. {*[]} values | ||
* 3. {String} summary: A summarized version of the sql argument | ||
* See GeneratorLogger.begin for more information. | ||
@@ -43,0 +43,0 @@ */ |
{ | ||
"name": "@goodware/log", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Winston3-based logging for Node.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -18,3 +18,3 @@ const { v1: uuidv1 } = require('uuid'); | ||
* ii. errorMessage | ||
* iii. operationId: the uuid | ||
* iii. operationId | ||
* c) Throws the error (thus terminating this workflow) | ||
@@ -24,3 +24,3 @@ * 4. Creates a log entry with: | ||
* b) endMessage | ||
* c) operationId: the uuid | ||
* c) operationId | ||
* 5. Returns the value from step 2 | ||
@@ -35,5 +35,5 @@ * @param {Object} logger | ||
* exception: | ||
* 1) The exception thrown by the task | ||
* 2) logger | ||
* 3) errorMessage | ||
* 1) {Error} The exception thrown by the task | ||
* 2) {Object} The logger argument | ||
* 3) {*} The errorMessage argument | ||
* The function returns either the message to log or a falsey value indicating nothing should be logged. The | ||
@@ -55,2 +55,3 @@ * exception is rethrown regardless of the return value. | ||
if (msg) logger.log('end', msg, { error }); | ||
throw error; | ||
} | ||
@@ -57,0 +58,0 @@ logger.log('end', endMessage); |
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
111400
2664