New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

wraplog

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wraplog - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

CHANGELOG.md

14

index.js

@@ -8,5 +8,5 @@ const winston = require('winston');

if (opts.syslog === undefined && (opts.ci !== undefined || process.env.CIRCLECI || process.env.CI || process.env.JENKINS)) {
if (opts.ci !== undefined) {
logTransports.push(new winston.transports.File({ filename: './logs/' + role + '.log' }));
} else if (opts.syslog === undefined && (opts.debug !== undefined || process.env.DEBUG)) {
} else if (opts.debug !== undefined || process.env.DEBUG) {
logTransports.push(new winston.transports.Console({ colorize: true }));

@@ -35,5 +35,11 @@ } else {

require('winston-syslog').Syslog;
logTransports.push(new winston.transports.Syslog(syslogOptions));
let prepTransport = new winston.transports.Syslog(syslogOptions);
prepTransport.handleExceptions = (e) => { console.error('logger caught error:', JSON.stringify(e)); };
logTransports.push(prepTransport);
}
this._logger = new winston.Logger({ transports: logTransports });
try {
this._logger = new winston.createLogger({ transports: logTransports });
} catch(e) {
console.error('caught error initializing logger:', JSON.stringify(e));
}
}

@@ -40,0 +46,0 @@

{
"name": "wraplog",
"license": "BSD-3-Clause",
"version": "0.0.1",
"version": "0.0.2",
"dependencies": {
"winston": "^2.4.0",
"winston-syslog": "^1.2.6"
"winston": "^3.0.0-rc1",
"winston-syslog": "^2.0.0"
},
"devDependencies": {
"mocha": "4.1.0"
},
"description": "logging library",

@@ -13,3 +16,7 @@ "engines": {

},
"repository": "https://github.com/faust64/logger"
"repository": "https://github.com/faust64/logger",
"scripts": {
"release": "npm login && git push -u origin master && npm publish",
"test": "make test"
}
}

Sorry, the diff of this file is not supported yet

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