Comparing version 2.2.3 to 2.3.0
'use strict'; | ||
const { Console } = require('console'); | ||
const NoopLog = require('nooplog'); | ||
@@ -8,3 +7,3 @@ const utils = require('./utils'); | ||
module.exports = function abslog(logger) { | ||
if (logger && logger instanceof Console) { | ||
if (logger && logger instanceof global.console.Console) { | ||
return Object.create(utils.consoleLogger); | ||
@@ -11,0 +10,0 @@ } |
{ | ||
"name": "abslog", | ||
"version": "2.2.3", | ||
"version": "2.3.0", | ||
"description": "An abstract logger - Enables adding logging to modules without adding a dependency to a full log library. ", | ||
@@ -43,13 +43,13 @@ "main": "lib/log.js", | ||
"eslint-plugin-import": "^2.13.0", | ||
"winston": "^3.1.0", | ||
"log4js": "^3.0.5", | ||
"bunyan": "^1.8.12", | ||
"pino": "^5.7.0", | ||
"roarr": "^2.11.2", | ||
"logdna": "^2.1.1", | ||
"synclog": "^1.0.1" | ||
"winston": "3.1.0", | ||
"log4js": "4.0.2", | ||
"bunyan": "1.8.12", | ||
"pino": "5.7.0", | ||
"roarr": "2.11.2", | ||
"logdna": "2.1.1", | ||
"synclog": "1.0.1" | ||
}, | ||
"dependencies": { | ||
"nooplog": "^1.0.2" | ||
"nooplog": "1.0.2" | ||
} | ||
} |
9992
43
Updatednooplog@1.0.2