Comparing version 3.3.1 to 4.0.0
# bedrock ChangeLog | ||
## 4.0.0 - 2020-12-07 | ||
### Changed | ||
- **BREAKING**: Use Winston logger 3.x. Bedrock configs for the various loggers | ||
are passed directly into the Winston logger constructors where there have | ||
been numerous breaking changes. This applies to config objects suchs as | ||
`config.loggers.console`. See: | ||
https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md | ||
- Various log formatters may be specified via the Bedrock config. The 'default' | ||
formatter produces logs that are equivalent to Bedrock 3.x. Custom | ||
formatters must conform the the `logform` API. See: | ||
https://github.com/winstonjs/logform | ||
```js | ||
// formatter options: | ||
// default, json, logstash or a custom formatter function | ||
config.loggers.console.bedrock.formatter = 'default'; | ||
``` | ||
## 3.3.1 - 2020-12-07 | ||
@@ -4,0 +22,0 @@ |
@@ -59,3 +59,6 @@ /*! | ||
// logging | ||
/* logging options | ||
* formatter options: | ||
* default, json, logstash or a custom formatter function | ||
*/ | ||
config.loggers = {}; | ||
@@ -65,11 +68,9 @@ | ||
config.loggers.console = {}; | ||
config.loggers.console.level = 'debug'; | ||
config.loggers.console.silent = false; | ||
config.loggers.console.json = false; | ||
config.loggers.console.timestamp = true; | ||
config.loggers.console.colorize = true; | ||
// bedrock options | ||
config.loggers.console.bedrock = {}; | ||
// move 'module' meta to a pretty message prefix if available | ||
config.loggers.console.bedrock.modulePrefix = true; | ||
config.loggers.console.bedrock.formatter = 'default'; | ||
config.loggers.console.bedrock.colorize = true; | ||
config.loggers.console.bedrock.onlyModules = false; | ||
@@ -80,7 +81,4 @@ config.loggers.console.bedrock.excludeModules = false; | ||
config.loggers.app = {}; | ||
// winston logger options | ||
config.loggers.app.level = 'debug'; | ||
config.loggers.app.silent = false; | ||
config.loggers.app.json = false; | ||
config.loggers.app.timestamp = true; | ||
// note: configured in loggers.js as path.join(config.paths.log, 'app.log') | ||
@@ -90,16 +88,15 @@ config.loggers.app.filename = null; | ||
config.loggers.app.maxFiles = 10; | ||
config.loggers.app.tailable = true; | ||
// bedrock options | ||
config.loggers.app.bedrock = {}; | ||
config.loggers.app.bedrock.formatter = 'default'; | ||
config.loggers.app.bedrock.colorize = false; | ||
// chown the logging dir to bedrock.config.core.running.userId | ||
config.loggers.app.bedrock.enableChownDir = false; | ||
// move 'module' meta to a pretty message prefix if available | ||
config.loggers.app.bedrock.modulePrefix = false; | ||
// file transport for access logging | ||
config.loggers.access = {}; | ||
// winston logger options | ||
config.loggers.access.level = 'debug'; | ||
config.loggers.access.silent = false; | ||
config.loggers.access.json = false; | ||
config.loggers.access.timestamp = true; | ||
// note: configured in loggers.js as path.join(config.paths.log, 'access.log') | ||
@@ -109,16 +106,15 @@ config.loggers.access.filename = null; | ||
config.loggers.access.maxFiles = 10; | ||
config.loggers.access.tailable = true; | ||
// bedrock options | ||
config.loggers.access.bedrock = {}; | ||
config.loggers.access.bedrock.formatter = 'default'; | ||
config.loggers.access.bedrock.colorize = false; | ||
// chown the logging dir to bedrock.config.core.running.userId | ||
config.loggers.access.bedrock.enableChownDir = false; | ||
// move 'module' meta to a pretty message prefix if available | ||
config.loggers.access.bedrock.modulePrefix = false; | ||
// file transport for error logging | ||
config.loggers.error = {}; | ||
// winston logger options | ||
config.loggers.error.level = 'error'; | ||
config.loggers.error.silent = false; | ||
config.loggers.error.json = false; | ||
config.loggers.error.timestamp = true; | ||
// note: configured in loggers.js as path.join(config.paths.log, 'error.log') | ||
@@ -128,8 +124,9 @@ config.loggers.error.filename = null; | ||
config.loggers.error.maxFiles = 10; | ||
config.loggers.error.tailable = true; | ||
// bedrock options | ||
config.loggers.error.bedrock = {}; | ||
config.loggers.error.bedrock.formatter = 'default'; | ||
config.loggers.error.bedrock.colorize = false; | ||
// chown the logging dir to bedrock.config.core.running.userId | ||
config.loggers.error.bedrock.enableChownDir = false; | ||
// move 'module' meta to a pretty message prefix if available | ||
config.loggers.error.bedrock.modulePrefix = false; | ||
@@ -136,0 +133,0 @@ // transport for email logging |
{ | ||
"name": "bedrock", | ||
"version": "3.3.1", | ||
"version": "4.0.0", | ||
"description": "A core foundation for rich Web applications.", | ||
@@ -32,2 +32,3 @@ "license": "SEE LICENSE IN LICENSE.md", | ||
"errio": "^1.2.2", | ||
"fast-safe-stringify": "^2.0.7", | ||
"lodash.get": "^4.4.2", | ||
@@ -38,6 +39,8 @@ "lodash.set": "^4.3.2", | ||
"pkginfo": "^0.4.1", | ||
"triple-beam": "^1.3.0", | ||
"uid-number": "0.0.6", | ||
"uuid-random": "^1.0.6", | ||
"winston": "^1.0.0", | ||
"winston-mail": "^2.0.0" | ||
"winston": "^3.3.3", | ||
"winston-mail": "^2.0.0", | ||
"winston-transport": "^4.4.0" | ||
}, | ||
@@ -44,0 +47,0 @@ "devDependencies": { |
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
148224
24
2214
17
+ Addedfast-safe-stringify@^2.0.7
+ Addedtriple-beam@^1.3.0
+ Addedwinston-transport@^4.4.0
+ Added@colors/colors@1.6.0(transitive)
+ Added@dabh/diagnostics@2.0.3(transitive)
+ Added@types/triple-beam@1.3.5(transitive)
+ Addedasync@3.2.6(transitive)
+ Addedcolor@3.2.1(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedcolor-string@1.9.1(transitive)
+ Addedcolorspace@1.1.4(transitive)
+ Addedenabled@2.0.0(transitive)
+ Addedfast-safe-stringify@2.1.1(transitive)
+ Addedfecha@4.2.3(transitive)
+ Addedfn.name@1.1.0(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedis-arrayish@0.3.2(transitive)
+ Addedis-stream@2.0.1(transitive)
+ Addedkuler@2.0.0(transitive)
+ Addedlogform@2.7.0(transitive)
+ Addedms@2.1.3(transitive)
+ Addedone-time@1.0.0(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsafe-stable-stringify@2.5.0(transitive)
+ Addedsimple-swizzle@0.2.2(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedtext-hex@1.0.0(transitive)
+ Addedtriple-beam@1.4.1(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedwinston@3.17.0(transitive)
+ Addedwinston-transport@4.9.0(transitive)
- Removedasync@1.0.0(transitive)
- Removedcolors@1.0.3(transitive)
- Removedeyes@0.1.8(transitive)
- Removedisstream@0.1.2(transitive)
- Removedpkginfo@0.3.1(transitive)
- Removedwinston@1.1.2(transitive)
Updatedwinston@^3.3.3