Comparing version 1.0.0 to 1.0.1
'use strict' | ||
var winston = require('winston') | ||
winston.setLevels(winston.config.syslog.levels) | ||
var base = require('./base') | ||
module.exports.debug = function (transports) { | ||
return new winston.Logger({ | ||
levels: { | ||
debug: 7 | ||
}, | ||
transports: transports | ||
}) | ||
return base.logger('debug', transports) | ||
} | ||
module.exports.info = function (transports) { | ||
return new winston.Logger({ | ||
levels: { | ||
info: 6 | ||
}, | ||
transports: transports | ||
}) | ||
return base.logger('info', transports) | ||
} | ||
module.exports.notice = function (transports) { | ||
return new winston.Logger({ | ||
levels: { | ||
notice: 5 | ||
}, | ||
transports: transports | ||
}) | ||
return base.logger('notice', transports) | ||
} | ||
module.exports.warning = function (transports) { | ||
return new winston.Logger({ | ||
levels: { | ||
warning: 4 | ||
}, | ||
transports: transports | ||
}) | ||
return base.logger('warning', transports) | ||
} | ||
module.exports.error = function (transports) { | ||
return new winston.Logger({ | ||
levels: { | ||
error: 3 | ||
}, | ||
transports: transports | ||
}) | ||
return base.logger('error', transports) | ||
} | ||
module.exports.crit = function (transports) { | ||
return new winston.Logger({ | ||
levels: { | ||
crit: 2 | ||
}, | ||
transports: transports | ||
}) | ||
return base.logger('crit', transports) | ||
} | ||
module.exports.alert = function (transports) { | ||
return new winston.Logger({ | ||
levels: { | ||
alert: 1 | ||
}, | ||
transports: transports | ||
}) | ||
return base.logger('alert', transports) | ||
} | ||
module.exports.emerg = function (transports) { | ||
return new winston.Logger({ | ||
levels: { | ||
emerg: 0 | ||
}, | ||
transports: transports | ||
}) | ||
return base.logger('emerg', transports) | ||
} |
{ | ||
"name": "@c8/logger", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Easy to use (config-based) wrapper around winston logger", | ||
@@ -5,0 +5,0 @@ "main": "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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
17388
15
495
2