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.3 to 1.0.4

test/api/loggly.js

2

lib/base.js

@@ -11,3 +11,3 @@ 'use strict'

levels[level] = Utils.level(level)
return new winston.Logger({
return new (winston.Logger)({
levels: levels,

@@ -14,0 +14,0 @@ transports: transports

'use strict'
const winston = require('winston')
require('winston-syslog').Syslog
require('winston-loggly')

@@ -11,3 +11,2 @@ const formatter = require('./formatter')

if (!config) return []
var transports = config.transports

@@ -22,16 +21,12 @@ var keys = Object.keys(transports)

Object.assign(options, formatter)
if (lvl.indexOf(level) > -1) {
switch (transport) {
case 'console':
Object.assign(options, formatter)
options.silent = (options.silent != null) ? options.silent : (process.env.NODE_ENV === 'test')
transportsArray.push(new (winston.transports.Console)(options))
break
case 'file':
transportsArray.push(new (winston.transports.File)(options))
case 'loggly':
transportsArray.push( new (winston.transports.Loggly)( options ) )
break
case 'syslog':
transportsArray.push(new (winston.transports.Syslog)(options))
break
}

@@ -38,0 +33,0 @@ }

{
"name": "@c8/logger",
"version": "1.0.3",
"version": "1.0.4",
"description": "Easy to use (config-based) wrapper around winston logger",

@@ -36,14 +36,16 @@ "main": "index.js",

"chai": "^3.5.0",
"code": "^2.2.0",
"express": "^4.13.4",
"istanbul": "^0.4.3",
"mocha": "^2.4.5",
"standard": "^6.0.8",
"supertest": "^1.2.0",
"code": "^4.0.0",
"express": "^4.14.0",
"istanbul": "^0.4.5",
"mocha": "^3.1.2",
"standard": "^8.5.0",
"supertest": "^2.0.1",
"test-console": "^1.0.0"
},
"dependencies": {
"winston": "^2.2.0",
"winston-syslog": "^1.2.1"
"assign.js": "^2.3.1",
"winston": "^2.3.0",
"winston-loggly": "^1.3.1",
"winston-syslog": "^1.2.4"
}
}

@@ -13,2 +13,10 @@ /* eslint-env mocha */

level: [Levels.INFO, Levels.DEBUG]
},
loggly: {
token: 'c627e174-89ef-4743-a949-28616c69c682',
domain: 'c8management',
env: 'INT',
level: 'info',
productName: 'logger',
serviceName: 'mocha'
}

@@ -15,0 +23,0 @@ }

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