Socket
Socket
Sign inDemoInstall

egg-logger

Package Overview
Dependencies
5
Maintainers
5
Versions
50
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.0 to 1.4.0

5

History.md
1.4.0 / 2016-11-02
==================
* feat: write support util.format (#10)
1.3.0 / 2016-09-21

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

3

lib/logger.js
'use strict';
const util = require('util');
const utils = require('./utils');

@@ -80,2 +81,4 @@

write(msg) {
// support util.format
if (arguments.length > 1) msg = util.format.apply(util, arguments);
// `NONE` is the top level

@@ -82,0 +85,0 @@ this.log('NONE', [ msg ], { raw: true });

3

lib/utils.js

@@ -12,3 +12,4 @@ 'use strict';

const duartionRegexp = /([0-9]+ms)/g;
const categoryRegexp = /(\[[\w\-_\.:]+\])/g;
// eslint-disable-next-line no-useless-escape
const categoryRegexp = /(\[[\w\-_.:]+\])/g;
const httpMethodRegexp = /(GET|POST|PUT|PATH|HEAD|DELETE) /g;

@@ -15,0 +16,0 @@

{
"name": "egg-logger",
"version": "1.3.0",
"version": "1.4.0",
"description": "egg logger",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc