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

log4js

Package Overview
Dependencies
Maintainers
1
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

log4js - npm Package Compare versions

Comparing version 6.4.3 to 6.4.4

15

CHANGELOG.md

@@ -1,3 +0,16 @@

# log4js-node changelog
# log4js-node Changelog
## 6.4.4
- [chore(fix): set logger.level on runtime will no longer wrongly reset useCallStack](https://github.com/log4js-node/log4js-node/pull/1217) - thanks [@peteriman](https://github.com/peteriman)
- [chore(docs): updated docs for broken links and inaccessible pages](https://github.com/log4js-node/log4js-node/pull/1219) - thanks [@peteriman](https://github.com/peteriman)
- [chore(docs): broken link to gelf appender](https://github.com/log4js-node/log4js-node/pull/1218) - thanks [@mattalexx](https://github.com/mattalexx)
- [chore(docs): updated docs for appenders module loading](https://github.com/log4js-node/log4js-node/pull/985) - thanks [@leonimurilo](https://github.com/leonimurilo)
- [chore(dep): updated dependencies](https://github.com/log4js-node/log4js-node/pull/1221) - thanks [@peteriman](https://github.com/peteriman)
- chore(dep): bump streamroller from 3.0.5 to 3.0.6
- chore(dep): bump debug from 4.3.3 to 4.3.4
- chore(dep): bump date-format from 4.0.5 to 4.0.6
- chore(dev): bump prettier from 2.5.1 to 2.6.0
- updated package-lock.json
## 6.4.3

@@ -4,0 +17,0 @@

34

lib/categories.js

@@ -144,2 +144,5 @@ const debug = require('debug')('log4js:categories');

categories.clear();
if (!config) {
return;
}

@@ -166,3 +169,3 @@ const categoryNames = Object.keys(config.categories);

const init = () => {
setup({ categories: { default: { appenders: ['out'], level: 'OFF' } } });
setup();
};

@@ -179,24 +182,23 @@ init();

}
let sourceCategoryConfig;
if (category.indexOf('.') > 0) {
debug(`configForCategory: ${category} has hierarchy, searching for parents`);
return configForCategory(category.substring(0, category.lastIndexOf('.')));
debug(`configForCategory: ${category} has hierarchy, cloning from parents`);
sourceCategoryConfig = { ...configForCategory(category.substring(0, category.lastIndexOf('.'))) };
} else {
if (!categories.has('default')) {
setup({ categories: { default: { appenders: ['out'], level: 'OFF' } } });
}
debug('configForCategory: cloning default category');
sourceCategoryConfig = { ...categories.get('default') };
}
debug('configForCategory: returning config for default category');
return configForCategory('default');
categories.set(category, sourceCategoryConfig);
return sourceCategoryConfig;
};
const appendersForCategory = category => configForCategory(category).appenders;
const getLevelForCategory = category => configForCategory(category).level;
const setLevelForCategory = (category, level) => {
let categoryConfig = categories.get(category);
debug(`setLevelForCategory: found ${categoryConfig} for ${category}`);
if (!categoryConfig) {
const sourceCategoryConfig = configForCategory(category);
debug('setLevelForCategory: no config found for category, '
+ `found ${sourceCategoryConfig} for parents of ${category}`);
categoryConfig = { appenders: sourceCategoryConfig.appenders };
}
categoryConfig.level = level;
categories.set(category, categoryConfig);
configForCategory(category).level = level;
};

@@ -203,0 +205,0 @@

@@ -63,3 +63,3 @@ /* eslint no-underscore-dangle: ["error", { "allow": ["_log"] }] */

categories.getLevelForCategory(this.category),
levels.TRACE
levels.OFF
);

@@ -66,0 +66,0 @@ }

{
"name": "log4js",
"version": "6.4.3",
"version": "6.4.4",
"description": "Port of Log4js to work with node.",

@@ -46,7 +46,7 @@ "homepage": "https://log4js-node.github.io/log4js-node/",

"dependencies": {
"date-format": "^4.0.5",
"debug": "^4.3.3",
"date-format": "^4.0.6",
"debug": "^4.3.4",
"flatted": "^3.2.5",
"rfdc": "^1.3.0",
"streamroller": "^3.0.5"
"streamroller": "^3.0.6"
},

@@ -67,3 +67,3 @@ "devDependencies": {

"nyc": "^15.1.0",
"prettier": "^2.5.1",
"prettier": "^2.6.0",
"proxyquire": "^2.1.3",

@@ -70,0 +70,0 @@ "tap": "^16.0.0",

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