Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bedrock

Package Overview
Dependencies
Maintainers
5
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bedrock - npm Package Compare versions

Comparing version 3.3.1 to 4.0.0

lib/loggers/formatters.js

18

CHANGELOG.md
# 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 @@

39

lib/config.js

@@ -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": {

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