Comparing version 1.1.0 to 1.1.1
@@ -5,3 +5,3 @@ 'use strict'; | ||
module.exports = (minLevel = 'info', handler) => { | ||
module.exports = (minLevel, handler) => { | ||
@@ -8,0 +8,0 @@ return loggerFactory() |
@@ -25,2 +25,5 @@ 'use strict'; | ||
setMinLevel(level) { | ||
if(!level) | ||
return this; | ||
if(!logLevels[level]) | ||
@@ -27,0 +30,0 @@ throw new Error(`Unknown log level ${level}.`); |
{ | ||
"name": "lllog", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A minimal zero-dependency logger", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
4285
75