@workpop/simple-logger
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -5,3 +5,13 @@ # Change Log | ||
<a name="1.0.1"></a> | ||
## [1.0.1](https://github.com/Workpop/simple-logger/compare/v1.0.0...v1.0.1) (2018-01-15) | ||
### Bug Fixes | ||
* **logger:** log error as console.error for gke ([c51d6fc](https://github.com/Workpop/simple-logger/commit/c51d6fc)) | ||
<a name="1.0.0"></a> | ||
# 1.0.0 (2017-06-15) |
@@ -17,3 +17,3 @@ 'use strict'; | ||
function _log(category, level) { | ||
var _console; | ||
var _console2; | ||
@@ -26,3 +26,9 @@ var now = (0, _moment2.default)().format(); | ||
(_console = console).log.apply(_console, [now + ' ' + level + ' [' + category + ']'].concat(args)); // eslint-disable-line no-console | ||
if (level === 'ERROR') { | ||
var _console; | ||
return (_console = console).error.apply(_console, [now + ' ' + level + ' [' + category + ']'].concat(args)); // eslint-disable-line no-console | ||
} | ||
return (_console2 = console).log.apply(_console2, [now + ' ' + level + ' [' + category + ']'].concat(args)); // eslint-disable-line no-console | ||
} | ||
@@ -29,0 +35,0 @@ |
{ | ||
"name": "@workpop/simple-logger", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Simple console logger", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
126000
63
1