Socket
Socket
Sign inDemoInstall

egg-logger

Package Overview
Dependencies
Maintainers
14
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

egg-logger - npm Package Compare versions

Comparing version 2.6.1 to 2.6.2

6

History.md
2.6.2 / 2021-08-02
==================
**fixes**
* [[`62d724f`](http://github.com/eggjs/egg-logger/commit/62d724fc2b4b2a22c2d554dbfc4c882b766ed630)] - fix: remove defineProperty to improve performance (#72) (Yiyu He <<dead_horse@qq.com>>)
2.6.1 / 2021-04-07

@@ -3,0 +9,0 @@ ==================

5

lib/egg/context_logger.js

@@ -47,7 +47,4 @@ 'use strict';

paddingMessage: this.paddingMessage,
ctx: this.ctx,
};
Object.defineProperty(meta, 'ctx', {
enumerable: false,
value: this.ctx,
});
this._logger.log(LEVEL, arguments, meta);

@@ -54,0 +51,0 @@ };

8

lib/utils.js

@@ -101,3 +101,9 @@ 'use strict';

meta.message = message;
output = options.json === true ? JSON.stringify(meta) : formatter(meta);
if (options.json === true) {
const outputMeta = { ...meta };
outputMeta.ctx = undefined;
output = JSON.stringify(outputMeta);
} else {
output = formatter(meta);
}
} else {

@@ -104,0 +110,0 @@ output = message;

{
"name": "egg-logger",
"version": "2.6.1",
"version": "2.6.2",
"description": "egg logger",

@@ -23,2 +23,3 @@ "main": "index.js",

"egg-bin": "^4.9.0",
"egg-ci": "^1.18.0",
"eslint": "^5.11.1",

@@ -61,5 +62,6 @@ "eslint-config-egg": "^7.1.0",

"ci": {
"version": "8, 10, 12, 14"
"version": "8, 10, 12, 14",
"type": "github"
},
"license": "MIT"
}
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