Socket
Socket
Sign inDemoInstall

egg-logger

Package Overview
Dependencies
Maintainers
5
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 1.1.1 to 1.2.0

5

History.md
1.2.0 / 2016-08-11
==================
* feat: remove fileTransport from consoleLogger (#6)
1.1.1 / 2016-08-10

@@ -3,0 +8,0 @@ ==================

14

lib/egg/console_logger.js

@@ -5,3 +5,2 @@ 'use strict';

const ConsoleTransport = require('../transports/console');
const FileTransport = require('../transports/file');
const utils = require('../utils');

@@ -17,4 +16,2 @@

* @param {Object} options
* - {String} [errorFile] - error file
* if specify this file, logger will redirect error log to the file.
* - {String} [encoding] - log string encoding, default is 'utf8'

@@ -29,12 +26,2 @@ */

}));
if (this.options.errorFile) {
const fileTransport = new FileTransport({
file: this.options.errorFile,
level: 'ERROR', // 只输出 error 级别的到文件
encoding: this.options.encoding,
formatter: utils.defaultFormatter,
});
this.set('file', fileTransport);
}
}

@@ -44,3 +31,2 @@

return {
errorFile: '',
encoding: 'utf8',

@@ -47,0 +33,0 @@ level: process.env.NODE_ENV === 'production' ? 'INFO' : 'WARN',

2

package.json
{
"name": "egg-logger",
"version": "1.1.1",
"version": "1.2.0",
"description": "egg logger",

@@ -5,0 +5,0 @@ "main": "index.js",

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