Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@c8/logger

Package Overview
Dependencies
Maintainers
5
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@c8/logger - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

lib/base.js

59

lib/logger.js
'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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc