logging-utils
Advanced tools
Comparing version 3.0.6 to 3.0.7
@@ -38,2 +38,15 @@ 'use strict'; | ||
/** | ||
* @typedef {Object} Logging - logging functionality | ||
* @property {Function} error - an error-level logging function | ||
* @property {Function} warn - a warn-level logging function | ||
* @property {Function} info - an info-level logging function | ||
* @property {Function} debug - an debug-level logging function | ||
* @property {Function} trace - a trace-level logging function | ||
* @property {boolean} warnEnabled - whether warn-level logging is enabled or not | ||
* @property {boolean} infoEnabled - whether info-level logging is enabled or not | ||
* @property {boolean} debugEnabled - whether debug-level logging is enabled or not | ||
* @property {boolean} traceEnabled - whether trace-level logging is enabled or not | ||
*/ | ||
// Exports | ||
@@ -126,3 +139,3 @@ module.exports = { | ||
* which will override any previously configured logging functionality on the target object | ||
* @returns {Object} the given target object | ||
* @returns {Logging} the given target object with logging functionality configured | ||
*/ | ||
@@ -187,3 +200,3 @@ function configureLogging(target, settings, options, underlyingLogger, forceConfiguration) { | ||
* which will override any previously configured logging functionality on the target object | ||
* @return {Object} the updated target object | ||
* @return {Logging} the updated target object with logging functionality configured | ||
*/ | ||
@@ -258,3 +271,3 @@ function configureLoggingWithSettings(target, settings, forceConfiguration) { | ||
* functionality, which will override any previously configured logging functionality on the target object | ||
* @return {Object} the updated target object | ||
* @return {Logging} the updated target object with logging functionality configured | ||
*/ | ||
@@ -261,0 +274,0 @@ function configureDefaultLogging(target, options, underlyingLogger, forceConfiguration) { |
{ | ||
"name": "logging-utils", | ||
"description": "Utilities for configuring simple log level based logging functionality on an object", | ||
"version": "3.0.6", | ||
"version": "3.0.7", | ||
"author": "Byron du Preez", | ||
@@ -6,0 +6,0 @@ "license": "Apache-2.0", |
@@ -1,2 +0,2 @@ | ||
# logging-utils v3.0.6 | ||
# logging-utils v3.0.7 | ||
Utilities for configuring simple log level based logging functionality on an object. | ||
@@ -166,2 +166,7 @@ | ||
### 3.0.7 | ||
- Added `Logging` typedef | ||
- Changed return types of `configureLogging`, `configureLoggingWithSettings` and `configureDefaultLogging` functions | ||
to new `Logging` type | ||
### 3.0.6 | ||
@@ -168,0 +173,0 @@ - Updated `core-functions` dependency to version 2.0.11 |
{ | ||
"name": "logging-utils-tests", | ||
"description": "Unit tests for logging-utils", | ||
"version": "3.0.6", | ||
"version": "3.0.7", | ||
"author": "Byron du Preez", | ||
@@ -6,0 +6,0 @@ "license": "Apache-2.0", |
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
81087
1157
252