@koopjs/logger
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -5,2 +5,6 @@ # Change Log | ||
## [2.0.1] - 2018-01-18 | ||
### Changed | ||
* Log json in production | ||
## [2.0.0] - 2018-01-17 | ||
@@ -34,2 +38,3 @@ ### Changed | ||
[2.0.1]: https://www.github.com/koopjs/koop-logger/compare/v2.0.0..v2.0.1 | ||
[2.0.0]: https://www.github.com/koopjs/koop-logger/compare/v1.2.0..v2.0.0 | ||
@@ -36,0 +41,0 @@ [1.2.0]: https://www.github.com/koopjs/koop-logger/compare/v1.1.1..v1.2.0 |
@@ -23,6 +23,7 @@ /* @flow */ | ||
if (!config.logfile) { | ||
// no logfile defined, log to STDOUT an STDERR | ||
// no logfile defined, log to STDOUT an STDERRv | ||
const debugConsole = new winston.transports.Console({ | ||
colorize: true, | ||
level | ||
colorize: !!process.env.NODE_ENV, | ||
level, | ||
json: !!process.env.NODE_ENV | ||
}) | ||
@@ -29,0 +30,0 @@ return new winston.Logger({ transports: [debugConsole] }) |
{ | ||
"name": "@koopjs/logger", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "A shared logger for Koop", | ||
@@ -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
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
55830
71
6