egg-logger
Advanced tools
Comparing version 1.3.0 to 1.4.0
1.4.0 / 2016-11-02 | ||
================== | ||
* feat: write support util.format (#10) | ||
1.3.0 / 2016-09-21 | ||
@@ -3,0 +8,0 @@ ================== |
'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 }); |
@@ -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", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
31722
904
0