Comparing version 0.0.2 to 0.0.3
@@ -0,1 +1,5 @@ | ||
## v0.0.3 - 201801170936 | ||
- add option diverting logs to console, without setting debugs | ||
## v0.0.2 - 201801071133 | ||
@@ -2,0 +6,0 @@ |
@@ -10,4 +10,6 @@ const winston = require('winston'); | ||
logTransports.push(new winston.transports.File({ filename: './logs/' + role + '.log' })); | ||
} else if (opts.debug !== undefined || process.env.DEBUG) { | ||
} else if (opts.debug !== undefined || process.env.DEBUG || process.env.LOG_TO_CONSOLE === 'color') { | ||
logTransports.push(new winston.transports.Console({ colorize: true })); | ||
} else if (opts.console !== undefined || process.env.LOG_TO_CONSOLE) { | ||
logTransports.push(new winston.transports.Console({ colorize: false })); | ||
} else { | ||
@@ -14,0 +16,0 @@ const syslogOptions = { |
{ | ||
"name": "wraplog", | ||
"license": "BSD-3-Clause", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"dependencies": { | ||
@@ -18,5 +18,5 @@ "winston": "^3.0.0-rc1", | ||
"scripts": { | ||
"release": "npm login && git push -u origin master && npm publish", | ||
"release": "(npm whoami | grep '^Not authed' >/dev/null && npm login) ; npm whoami | grep '^Not authed' >/dev/null && echo 'login to npm required' >&2 && exit 1 ; git push -u origin master && npm publish", | ||
"test": "make test" | ||
} | ||
} |
# Logger library - npmjs' wraplog | ||
* [](https://circleci.com/gh/faust64/logger) | ||
* Last tests against master on CircleCI: [](https://circleci.com/gh/faust64/logger) | ||
@@ -5,0 +5,0 @@ * Install with: |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
7401
78
8
11