hf-node-logger
Advanced tools
Comparing version 1.1.0 to 1.1.1
module.exports = function(level, stdOut, errOut){ | ||
module.exports = function(options){ | ||
var DEBUG = 'debug' | ||
@@ -22,8 +22,10 @@ var INFO = 'info'; | ||
stdOut = stdOut || console.log; | ||
errOut = errOut || console.error; | ||
level = level || DEBUG; | ||
stdOut = options.stdOut || console.log; | ||
errOut = options.errOut || console.error; | ||
level = options.level || DEBUG; | ||
name = options.name || 'AppLog'; | ||
var log = function(level, message){ | ||
message = 'AppLog | '+level+': '+message; | ||
var timestamp = new Date(); | ||
message = timestamp+' | 'name+' | '+level+' | '+message; | ||
@@ -30,0 +32,0 @@ if(level === INFO || level === WARNING){ |
{ | ||
"name": "hf-node-logger", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A logger module with loglevels", | ||
@@ -5,0 +5,0 @@ "main": "logger.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
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
5185
55